successfully completed. If not, the user is informed and
2. The RPM database is queried to see if any
3. The
4. The package files are installed. Required directories are created, relocations are performed, and permissions and ownership are adjusted.
5. The
6. If the operation being performed is not an upgrade or freshen,
7. The RPM database is queried to see if any
8. The
9. If repackaging has been selected, the old package files and metadata are used to construct an RPM, which is placed in
10. The obsolete files from the old package are deleted.
11. The
12. The RPM database is queried to see if any
13. The RPM database is updated to reflect what was done during the transaction.
There are four opportunities for scripts to run. This permits configuration files to be backed up before new packages are installed, services to be stopped before upgrading and restarted after, and configuration data to be copied from the old to the new package. There are also three opportunities for trigger scripts to run.
Each RPM operation is called a
5.2.3. What About...
5.2.3.1. ...installing multiple versions of a package?
It's possible, but it can create a lot of problems. The --force option is required, and it's probably best to relocate the second installation to avoid file conflicts:
# rpm -q
httpd-2.0.54-10.2
# rpm -i --force
# rpm -q
httpd-2.0.54-10.2
httpd-2.0.54-10
This will install the old version of
To remove the packages, you'll either need to specify the full package name including the software and package version numbers (e.g.,
# rpm -e
error: 'httpd' specifies multiple packages
# rpm -e --allmatches
5.2.4. Where Can I Learn More?
?
? The manpage for
5.3. Using Repositories
RPM is a great package manager, but to really use packages efficiently, you'll need to use RPM along with a repository system so that your Fedora system can access remote libraries of software. Having access to the repository enables the automatic resolution of dependency issues, so that when you select a software package for installation, all required associated software is also installed automatically.
5.3.1. How Do I Do That?
Fedora uses the
5.3.1.1. Using yum from the command line
Using
# yum install
Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00