Open main menu

CDOT Wiki β

Changes

Temp OPS235 Lab 1

No change in size, 19:38, 11 January 2012
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:
#* :: <code>grep ________________ /root/install.log | wc -l</code>
# 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:
#* :: <code>rpm -q -a</code>#* :: <code>rpm -q -a | wc -l</code>#* :: <code>rpm -qa | wc -l</code>
# 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:
#* :: <code>rpm -q -l package_name</code>
# 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:
#* :: <code>rpm -ql package_name| wc -l</code>
# 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>
13,420
edits