RpmDrake applications are merely graphical interfaces to the powerful urpmi command line tools. For those wishing to control their packages through the command line (useful if you are working remotely, for example) we quickly present the most useful commands. Note that most commands will need root privileges.
This is done through two simple commands:
Consult the urpmi(8) and urpme(8) man pages to learn about the many options and behaviors of these two commands.
Adding and removing medias is easy on the command line but the syntax must be strictly respected.
urpmi.addmedia <name> <url> |
This command allows you to add a new media either from a local drive, a removable device (CD-ROM), or from the network through the HTTP, FTP, NFS, ssh or rsync protocols. The syntax varies for each of these methods so you are encouraged to consult the urpmi.addmedia(8) man page before using it.
You know you need a specific file on your system but you do not know which package provides it... The urpmf utility will scan all medias and find it for you. Just run urpmf <filename> and the package(s) that contain it will be displayed.
You can even provide only a partial name. For example urpmf salsa will return all packages that contain a file which name contains the salsa name in it.
[root@test peter]# urpmf salsa kaffe:/usr/lib/kaffe/lib/i386/libtritonusalsa-1.1.x-cvs.so kaffe:/usr/lib/kaffe/lib/i386/libtritonusalsa.la kaffe:/usr/lib/kaffe/lib/i386/libtritonusalsa.so libncbi2-devel:/usr/include/ncbi/salsa.h libncbi2-devel:/usr/include/ncbi/salsap.h |