RHEL5/6 Interview Questions : Package Management
Other Learning Articles that you may like to read
Free Courses We Offer
Paid Training Courses we Offer
1. What two commands are used for package management?
1a. The yum and rpm commands are used for package management.
2. What are the three modes in which the rpm command can operate?
2a. The rpm command can operate in install, query, or verify modes.
3. What option would you use to query an installed packages using the rpm command?
3a. You can use the -q option to query an installed package. Combining grep and the -qa options, you can search among all installed packages on the system.
4. How would you install a group of packages all at a single time?
4a. Use the yum groupinstall command to install multiple packages in a single group at once.
5. What options with the yum command would you use to remove a package?
5a. You can use the remove or erase options with yum to remove a package.
6. Where are Yum repository config files located?
6a. Yum repository config files (.repo files) are located in the /etc/yum.repos.d directory. You can also make direct entries into the main /etc/yum.conf file.
7. What command can you use to create your own repositories?
7a. createrepo
8. What command is used to create an RPM package?
8a. rpmbuild
9. What are the five required directories when building RPMS?
9a. The five directories are BUILD, RPMS, SOURCES, SPECS, and SRPMS.
10. If a package is built on an RHEL6 system and deployed to a custom RHEL5 repository, are RHEL5 systems able to use it?
10a. No. Red Hat Enterprise Linux 6 uses a different key to sign its packages.
It is good to know about building rpm and its directories.