rpm
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rpm [2009/10/13 06:53] – 172.26.0.166 | rpm [2012/03/21 12:14] (current) – [Building RPMs] ikahugu | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== RPM Commands | + | ====== Redhat Package Manager ====== |
+ | ====== Tips ====== | ||
Check if a package is installed: | Check if a package is installed: | ||
< | < | ||
Line 14: | Line 15: | ||
Manually remove an rpm: | Manually remove an rpm: | ||
< | < | ||
+ | |||
+ | upgrade a package | ||
+ | < | ||
+ | * rpm -qa | less :list all installed software packages | ||
+ | * rpm -q httpd :show the version of the httpd package, if it is installed | ||
+ | * rpm -qa | grep httpd : show all installed packages that have httpd in their name | ||
+ | * rpm -ql httpd : list all files in the httpd package | ||
+ | * rpm -qd httpd : list all documentation files in the httpd package | ||
+ | * rpm -qc httpd : list all configuration files in the httpd package | ||
+ | * rpm -qi httpd : display information about the package | ||
+ | * rpm -V httpd : verify that the httpd package is correctly installed | ||
+ | * rpm -qf /etc/passwd :determine which package the /etc/passwd file belongs to | ||
+ | To unistall a package: | ||
+ | < | ||
+ | < | ||
+ | ====== Building RPMs ====== | ||
+ | |||
+ | An RPM is a pre-compiled package containing binaries and config files, etc which can be installed using '' | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | Install '' | ||
+ | < | ||
+ | Setup your home directory' | ||
+ | < | ||
+ | $ echo ' | ||
+ | Download an SRPM and build: | ||
+ | < | ||
+ | $rpmbuild --rebuild EMBOSS-5.0.0-1.src.rpm</ | ||
+ | Install with: | ||
+ | < | ||
+ | If upgrading, use | ||
+ | < | ||
+ | ====== Troubleshooting ====== | ||
+ | |||
+ | If you have problems with GPG errors, add a line like this to your '' | ||
+ | < | ||
+ | ==== Dag Wieers' | ||
+ | ---- | ||
+ | |||
+ | < | ||
+ | name=Dag RPM Repository for Red Hat Enterprise Linux | ||
+ | baseurl=http:// | ||
+ | gpgcheck=1 | ||
+ | enabled=1 | ||
+ | </ | ||
+ | |||
+ | |||
+ | < | ||
+ | Check more on this here http:// | ||
+ | |||
+ | |||
+ | ==== PBONE REPOS ==== | ||
+ | ---- | ||
+ | < | ||
+ | cd / | ||
+ | wget http:// | ||
+ | yum install pidgin | ||
+ | </ |
rpm.1255416815.txt.gz · Last modified: 2010/05/22 14:19 (external edit)