Managing Software

Key Goals

  • Update local software/packages from remote/local repository

Content

  • yum:
    • yum cli
    • yum repository
    • yum cache
  • rpm:
    • rpm cli

Exercises

  1. Install the ‘epel’ repository and disable it using yum cli.
  2. Make sure the ‘updates’ repository is enabled (if not, enable it by editing it’s repo file).
  3. Find which package installs the ‘netstat’ command.
  4. Print the information of that package.
  5. List all the files that this package installs (full paths).
  6. Find which rpm package installs the ‘/etc/hosts’ file?
  7. Explain the ‘rpm -V <package_name>’ command.
  8. List all the available versions of ‘httpd’ package that available for installation.
  9. Install the newest ‘httpd’ package available.
  10. List all the installed packages that contains the ‘kernel’ word in the <package_name>.
  11. List all the dependencies of the ‘nmap’ package.
  12. Which command lists all the available [enabled & disable] repositories on your system?
  13. Using yum, download (without installing) the ‘tree’ package. where is it stored (directory)?
  14. Which command can be used for cleaning your current yum cache?
  15. Which command can be used for rebuilding the yum cache?
  16. Find how many packages (rpms) are installed on your system?
  17. Explain what is a ‘mirrorlist’ and how is it related to yum?