13,420
edits
Changes
no edit summary
# The name of the installation log file is <code>/root/install.log</code> -- It is an ASCII file (how can you be sure?) and can be viewed with the <code>less</code> command.
# You can make use of this file to determine how many packages have been installed: complete the following command to count the number of packages listed in the installation log file:
# Using the <code>rpm</code> command: you can also use the following commands to list all the installed packages, and the total number of packages installed:
# The <code>-q</code> option means query, and the <code>-a</code> option means all (in other words, query all installed software packages). Did you get the same number of packages from the above two methods?
# Some of the files on your system were installed with the software packages, and some were created by system activity (for example, by creating your Learn account and by logging in). If you know the package name (from the <code>install.log</code>), you can list all the files that were installed from the package by using the following command:
# This combines the <code>-q</code> (query) option with the <code>-l</code> (list filenames) option.
# You can pipe the outupt through <code>wc -l</code> to count the number of lines:
# Using what you learned in steps 3, 4, and 8, get a count of the total number of files installed by all of the software packages on your system.
# To find out the name that you have assigned to your Linux system, enter the command: <code>hostname</code>