Main BLOGGER
Google
WWW THIS BLOG
Wednesday, July 25, 2007
 
RPM by example
Quoted and tested from
http://dirac.org/linux/rpm.html

also see http://www.dirac.org/linux/


1. rpm package name convention
wine-0.9.2-1rh9winehq.i386.rpm
^^^^^                                          Package name: wine
        ^^^^^                                  Version number: 0.9.2 (independent of vendor)
                ^^^^^^^^^^^^^                Release number: 1rh9winehq (this is vendor specific!!)
                                 ^^^^^          Architecture: i386 (this package works on any 80386 compatible system)

It's possible that architecture is "noarch" which means you can install it on a linux system running on PC, sparc, alpha, etc.

2. query installed rpm package
rpm -q package-name  (installed or not?)
rpm -ql package-name (what did it install?)

for example, wine-0.9.2-1rh9winehq.i386.rpm
you can run

[pliu@liu Downloads]$ rpm -q wine
wine-0.9.2-1rh9winehq

[pliu@liu Downloads]$ rpm -ql wine
/etc/rc.d/init.d/wine
/usr/bin/msiexec
/usr/bin/notepad
/usr/bin/progman
/usr/bin/regedit
/usr/bin/regsvr32
/usr/bin/uninstaller
/usr/bin/wcmd
/usr/bin/wine
...

3. un-installed RPM package
rpm -e package-name

4. install RPM package
rpm -i package.rpm (the whole file name)

5. verify RMP package wellness
rpm -V package-name
For example, rpm -V wine
If nothing appears, then wine package is fine.

6. upgrade by force
rpm -U -nodeps package.rpm

--
Pop (Pu Liu)



<< Home

Powered by Blogger

Google
WWW THIS BLOG