NT 1430
Tyrel Cain (19103625)
Tyrel Cain
NT1430
4/23/2015
Unit 6 Chapter Exercises
Chapter 13
2. Which command would you give to update all installed packages using yum?
# yum update
3. Why would you build a package from its source code when a (binary) rpm file is available?
Most packages have options that are specified at compile time. The person who builds the rpm file sets these options to commonly used values. You may want other values; if you do, you need to compile the source code.
4. Suggest two advantages that rpm files have over source distributions.
Some advantages are automatic dependency resolution, fast installation, simple uninstall, ability to query the package database, and easier deployment.
Also, many software packages with complicated configuration scripts examine the local system to determine which options to compile with, so you may end up with different executables on different systems.
Using distribution binary packages keeps documentation consistent with installed programs and makes it possible for developers to reproduce bugs more easily.
Advanced Exercises
5. When you compile a package yourself, rather than from an rpm file, which directory hierarchy should you put it in?
Put nonstandard programs in the /usr/local directory hierarchy. Executable files typically go in /usr/local/bin.
Chapter summary
I believe a PMS (package management system) is a set of utilities that allow you to install, upgrade, remove, and search software packages easily and in a consis- tent manner. It is based on a local database that holds information about each installed package, including its dependencies and version information. The development of the RPM PMS has made the process of adding and removing the software packages quite easy. You can use yum, a front end to RPM, to install and upgrade software packages. The yum utility is installed by default and is easy to configure and use. References
Sobell, Mark G. A
References: Sobell, Mark G. A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, 6th Edition. Prentice Hall, 2012. VitalBook file.