Easy urpmi update




















This can be accomplished with the following commands: urpmi. An even better option is to install the "bash-completion" package, which is capable of suggesting package names following the urpmi command and the first few letters of a package name. Upgrading an entire Mandrake Linux system can be accomplished with the following two commands: urpmi. As mentioned earlier, urpmi also provides a set of powerful search commands. User: Password:. You should use the command urpmi autoconf2.

Note that on your Mageia system, both versions should be installed: Mageia will automatically choose the one that is most appropriate. MDK for more information on this particular example. See several remarks about urpmq --fuzzy below to learn how to avoid such versioning problems. The first command urpmi. The second command urpmi --auto-select selects all available updates of already installed packages and initiates the update process. Urpmi will list the upgradeable packages and ask if you wish to proceed.

If you want to proceed, just type y for yes or n for no and then press Enter. When the update-process is finished installing you'll get a new prompt at the bottom. Normally you should make sure you have a corresponding "-devel-" package for your kernel. It is needed for i. Correspondingly there also exist "-source-" packages, but you normally do not need them: This is the source code of the most recent kernel available in the update source.

You only need to install the kernel source package if you need to compile anything like a device driver but it can also be handy to search the documentation included in the package. Be sure that you have installed the same version of kernel-source as the kernel you are running, or else the drivers you compile will not work.

Other dependencies: If you have virtualbox installed, you should have "virtualbox-kernel And if you have "-latest" on your kernel you should also have the corresponding "virtualbox-kernel Automatic updates: If you have kernel packages that end with "-latest", the latest kernel of that flavour will get automatically installed when you run normal uppdates. Make sure you have "latest" packages installed also for -devel- and -source- if you have it for your kernel, and vice versa.

The grub or lilo configuration will be automatically adjusted by adding a new stanza to allow you to boot the old and the new kernels.

The default 'linux' stanza will boot the new kernel. Updates are downloaded to one of the machines and from there pushed to the others on your network. See man urpmi for more and man urpmi. In more detail - the machine you run the command on tests its result on each machine in the group in turn, downloads all necessary packages for all machines in the group, distributes the appropriate packages to each machine, then calls urpmi on the machine to do the actual installation.

It's brilliant for quickly installing software on all your machines, or even keeping them all up-to-date with a couple of commands, and it saves on bandwidth, as each necessary package is downloaded only once. The only drawback at the moment is that you cannot include the server machine in the group, which makes it a little less good for small home networks. Then direct all Mageia systems including the one that runs urpmi-proxy to retrieve packages from that machine.

That machine will then retrieve packages that any other machine asks for, and cache them, so when another machine asks for the same it is quickly retrieved from cache. So how to use urpmi --parallel? It's pretty simple, really. First, make sure you can ssh from the server to each client machine as root you have to enter a passphrase or password, but can be you set up to use keys and make use of ssh-add to avoid that.

Now install urpmi-parallel-ssh on the server machine. Leave the second as ssh. The remaining parameters are the hostnames of the machines in the group; as many as you like but not the server machine: urpmi will just fall over its own lock files. As long as urpmi on the server has an access to all packages required by all client machines from its urpmi media, everything should now work smoothly.

The easiest way to ensure this is to have all machines - server and client - use the same urpmi media. This is the command that uninstalls software from your box. As with urpmi , it works out the dependencies and tells you if any software that's still installed depends on what you want to uninstall, giving you the chance to abort the procedure or to uninstall the package and those that depend on it.

Usage is:. For instance, if Sylpheed is so good that you want to get rid of Evolution, your former e-mail client, you can make some place on your hard drive with urpme evolution.

For removing all apparently unused packages, or for removing a whole task like a desktop environment, see Removing packages. To list only the active medias, add "active" on the command line, and you can add option "--list-url" to see where they are fetched from:. To edit media, launch media configuration drakrpm-edit-media , alternatively use Mageia Control Center.

If you wish to also select or deselect a media for updates i. Category : Mandriva. Navigation menu Personal tools Create account Log in.

Namespaces Page Discussion. Views Read View source View history. You probably will not need to change this. To add more installation media other CDs, local directories, remote directories , use urpmi.

To add this directory to the urpm database, run as SuperUser :. For remote package resources you have to provide the relative path to the hdlist. You can not add remote resources to urpm unless they provide that dependency file. There are some tools that can make this easier. There is also a web tool called Easy urpmi that will help you locate mirrors and generate the urpmi. To remove a resource from urpm, run as SuperUser :. These commands require SuperUser privileges.

To install a package, use the urpmi command. If the package needs other packages, urpmi will ask you if it is OK to install these, too.



0コメント

  • 1000 / 1000