Urpmi

From Mandrivausers Wiki

Jump to: navigation, search

Contents

[edit] urpmi

urpmi is a Mandriva Linux package management 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. It works with official sources from Mandriva or unofficial sources such as those from the Penguin Liberation Front.

urpmi was developed as an experimentation by Pascal Rigaud (aka: Pixel) to address RPM install limitation, it was further maintained by Francois Pons and different Mandriva employees.

Official urpmi site

[edit] Graphical Frontend

Mandriva has written a graphical fronted to urpmi to. It is called rpmdrake, it makes installing and removing sofware as easy as pointing and clickink. Rpmdrake can be accessed either directly from a menu entry (Add and Remove Software), via the Mandriva Control Center or via the commandline (with the command: rpmdrake).

Official urpmi site

[edit] Advanced

[edit] Troubleshooting: urpmi database locked

In case your system is unable to update and reports a locked urpmi database, there is a simple way to solve this issue:

If you run a urpmi/rpm command and find out that your urpmi database is locked, you can execute this script to unlock it.

  #!/bin/sh
  if [ -f /var/lib/urpmi/.LOCK ]; then
     rm -f /var/lib/urpmi/.LOCK
  fi
  if [ -f /var/lib/urpmi/.RPMLOCK ]; then
     rm -f /var/lib/urpmi/.RPMLOCK
  fi

Save the above code into a file called something like unlock.sh into a directory of your choice. Then perform the following command, as root, assuming you named the file unlock.sh

  chmod +x unlock.sh

Then as root again from within the directory you saved the file perform the following command:

  ./unlock.sh

This should run the script and do what it needs to do to unlock your rpm/urpmi database.

Personal tools