Some more urpmi tricks:
Posted Jan 29, 2004 13:54 UTC (Thu) by
juanjux (guest, #11652)
Parent article:
A Quick Reference Guide to urpmi
Installing some packages from cooker without upgrading the whole stable
distribution:
I usually keep the Cooker media added to my sources, so I can install a
package from the "unstable" Mandrake distribution if I need to (for
example I currently have KDE 3.2 and kernel 2.6 installed from cooker).
But I don't want my entire distribution to upgrade to cooker, so I have
two alias defined in my .bashrc:
alias urpmi='/usr/sbin/urpmi --excludemedia cooker --wget --noclean'
alias urpmico='/usr/sbin/urpmi --media cooker --wget --noclean'
The first command don't install things from cooker and the other is the
one I use to install packages (and his deps) from cooker. Also, you have
to take care to don't install cooker packages if you're using the GUI
tools (in the description on the right there is a field called "media").
The --wget parameter tells urpmi to use wget for downloading of packages
instead of curl, and I have a continue = on opcion enabled in my
/etc/wgetrc so I can freely interrupt a package download by urpmi (say,
OpenOffice.org) and when I issue the command again it doesn't starts
downloading the entire package again. The --noclean parameter tells urpmi
to don't delete the package in /var/cache/urpmi/rpms after they've been
installed, so I can copy them to my laptop and upgrade that too without
downloading (again) all the packages. But then, you've to remember to
delete the packages there from time to time.
Having being a Debian user for 8 years (I still use it on the second
computer in my home) I doesn't miss apt-get too much in my Mandrake
except for two details of urpmi:
* There is not an option for urpmq to search not only in package names
but also in package descriptions, like apt-cache search does.
* It informs you of how many MB the packages you're about to upgrade or
install are going to use, but it doesn't says how many MB you'll have to
download in total (I've discovered that this is usually about 50% of the
first) or what is the ETA for finishing all the downloads. apt-get gives
you this information.
(
Log in to post comments)