This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
rpm [2009/09/29 13:13] 172.26.0.166 created |
rpm [2012/03/21 12:14] (current) ikahugu [Building RPMs] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== RPM Commands | + | ====== Redhat Package Manager ====== |
| + | ====== Tips ====== | ||
| Check if a package is installed: | Check if a package is installed: | ||
| < | < | ||
| Line 8: | Line 9: | ||
| List files in a certain package: | List files in a certain package: | ||
| < | < | ||
| + | List files in an RPM: | ||
| + | < | ||
| Manually install an rpm (as in, not using a repository with a package manager like yum): | Manually install an rpm (as in, not using a repository with a package manager like yum): | ||
| < | < | ||
| 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 | ||
| + | </ | ||