Difference between revisions of "Urpmi"

From Christoph's Personal Wiki
Jump to: navigation, search
 
Line 16: Line 16:
 
  urpmi -y <word>        # Find package containing <word> in their name
 
  urpmi -y <word>        # Find package containing <word> in their name
 
  urpmi_rpm-find-leaves  # Find package without link (dependencies)
 
  urpmi_rpm-find-leaves  # Find package without link (dependencies)
 +
 +
=== Adding sources ===
 +
 +
* Type the following as root (I am using a mirror in France):
 +
<pre>
 +
urpmi.addmedia main ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/main/release with media_info/hdlist.cz
 +
urpmi.addmedia main_updates ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/main/updates with media_info/hdlist.cz
 +
urpmi.addmedia main_backports ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/main/backports with media_info/hdlist.cz
 +
urpmi.addmedia contrib rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/contrib/release with media_info/hdlist.cz
 +
urpmi.addmedia contrib_updates ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/contrib/updates with media_info/hdlist.cz
 +
urpmi.addmedia contrib_backports ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/contrib/backports with media_info/hdlist.cz
 +
</pre>
 +
 +
Note: You might need to enter <tt>urpmi.removemedia -a</tt> first, in order to reinitialize urpmi's setup.
  
 
==See also==
 
==See also==

Revision as of 00:49, 2 December 2006

The correct title of this article is urpmi. The initial letter is capitalized due to technical restrictions.

urpmi is a Mandriva Linux package management command line tool for installing, removing, updating and querying software packages of local or remote (networked) media. It wraps around the package manager rpm with the aim that the user should not have to suffer the often-encountered dependency hell.

Usage

urpmi <package_name>   # Install package
urpme <package_name>   # Uninstall package with link (dependencies)
urpmq <package_name>   # Query the package database
urpmf <file>           # Find package that contains a file
urpmi.update -a        # Update your package list
urpmi --auto-select    # Update your system

Useful commands

urpmi -y <word>        # Find package containing <word> in their name
urpmi_rpm-find-leaves  # Find package without link (dependencies)

Adding sources

  • Type the following as root (I am using a mirror in France):
urpmi.addmedia main ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/main/release with media_info/hdlist.cz
urpmi.addmedia main_updates ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/main/updates with media_info/hdlist.cz
urpmi.addmedia main_backports ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/main/backports with media_info/hdlist.cz
urpmi.addmedia contrib rsync://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/contrib/release with media_info/hdlist.cz
urpmi.addmedia contrib_updates ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/contrib/updates with media_info/hdlist.cz
urpmi.addmedia contrib_backports ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/MandrivaLinux/official/2007.0/i586/media/contrib/backports with media_info/hdlist.cz

Note: You might need to enter urpmi.removemedia -a first, in order to reinitialize urpmi's setup.

See also

External links