Updating urpmi

Posted by / 08-Sep-2015 23:24

Updating urpmi

The aim of this tutorial is to show the new RPM user (who may or may not be a new Linux user) how to use URPMI and RPM for their own package management, and to help dispel the elitist view that RPMs suck (they don't).

, which makes software installation and upgrades amazingly easy.

The fix is easy, but we don't want to wait for an official version.

First, your system should be set up to build SRPMs.

Since Linux is all about free software and open-source, you can find source RPMs (SRPMs) for every non-commercial package on your system.

This gives you the source code in a form that, if you recompiled without modifications, gives you a new package rebuilt with exactly the same options and everything as the official binary.

For the "usual" Mandriva sources, there is the helpful command generator at Easy URPMI that will tell you exactly what command to type in to add a source.The buildarchtranslate stuff tells it to build all x86 stuff as i586.You can set this to i686 or something else, if you prefer, but i586 is the baseline for Mandrake. First I download the original SRPM that the Mandrake folks used to build the original version: [[email protected] walter]# rpm -ivh libwnck-2.4.0.1-1rpm warning: user fcrozat does not exist - using root warning: group fcrozat does not exist - using root warning: user fcrozat does not exist - using root warning: group fcrozat does not exist - using root 1:libwnck ########################################### [100%] [[email protected] walter]# [[email protected] SOURCES]# tar cjf libwnck-2.4.0.1bz2 libwnck-2.4.0.1 [[email protected] SOURCES]# rpm -ba ../SPECS/Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.92973 umask 022 cd /usr/src/RPM/BUILD The last step is to install my newly created custom RPMs.There is a common perception that this solves all the nasty dependency problems that RPM-based distributions suffer from, and therefore RPM sucks. Would a Debian user typically use dpkg manually to do installation? There is nothing inherently wrong with RPM as a package format, which is more or less comparable to dpkg.What we need is a tool built on top of RPM that does all the automatic dependency stuff for you like apt does.

updating urpmi-12updating urpmi-53updating urpmi-4

Since I didn't change the version number, if libwnck is already installed, RPM won't install it again, so I have to force the issue (yes, I do know what I'm doing).

One thought on “updating urpmi”