Section 8.2. Linux Installation and Package Management (Topic 1.102)


8.2. Linux Installation and Package Management (Topic 1.102)

8.2.1. Review Questions

  1. Why is the /var directory usually located in a partition of its own?

  2. As a system administrator for a network with many workstations and a central NFS file server, how can you safely share /usr with your users while still maintaining control of its contents?

  3. Describe how to create a tar archive and how its contents are extracted.

  4. In general terms, describe the procedure used to compile and install free or open source software from source code.

  5. What is a shared library? How can you determine what library dependencies exist in a compiled executable?

  6. Briefly describe the major functional modes of rpm.

  7. Why might a Debian Linux administrator use dpkg -iG instead of simply dpkg -i to install a package?

8.2.2. Exercises

  1. In a shell, examine your disk layout using cfdisk or fdisk. For example:

     # fdisk Command (m for help): p Disk /dev/sda: 255 heads, 63 sectors, 1109 cylinders Units = cylinders of 16065 * 512 bytes    Device Boot    Start       End    Blocks   Id  System /dev/sda1             1        51    409626   83  Linux /dev/sda2            52      1109   8498385    5  Extended /dev/sda5            52        90    313236   83  Linux /dev/sda6            91        97     56196   83  Linux /dev/sda7            98       136    313236   83  Linux /dev/sda8           137       264   1028128+  83  Linux /dev/sda9           265       519   2048256   83  Linux /dev/sda10          520       532    104391   83  Linux /dev/sda11          533       545    104391   82  Linux swap /dev/sda12          546      1109   4530298+  83  Linux 

    Is the entire disk consumed by the existing filesystems?

  2. Examine how system directories are mapped to disk partitions on your system. Are /var and /tmp in their own partitions? Is /boot in its own partition within cylinder 1024? Is the root filesystem relatively small?

  3. Where is LILO installed on your system? If it is installed in the boot sector, does your configuration allow for multiple boot scenarios? If it is installed in the root partition, is it within the first 1024 cylinders?

  4. Locate a tarball (from freshmeat.net, for example), and install it on your system with the following steps:

    1. Unpack it using tar xzvf file.

    2. Configure with ./configure.

    3. Build the software using make as directed in the documentation.

    4. Install the software using the instructions provided.

    Were there any difficulties with this procedure?

  5. Use ldd to examine library dependencies of executable programs on your system. For example:

     # ldd 'which xterm'    libXaw.so.7 => /usr/X11R6/lib/libXaw.so.7 (0x40019000)    libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x4006a000)    libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x4007e000)    libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x400c7000)    libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x400d0000)    libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x400e6000)    libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x400f4000)    libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40101000)    libncurses.so.4 => /usr/lib/libncurses.so.4 (0x401c4000)    libc.so.6 => /lib/libc.so.6 (0x40201000)    /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) 

  6. Using a system that utilizes dpkg, obtain a list of all packages installed under dpkg management with dpkg -l | less. Find a package in the list that looks unfamiliar, and query information about the package using dpkg -s pkg_name.

  7. Using a system that utilizes RPM, obtain a list of all packages installed under RPM management with rpm -qa | less. Find a package in the list that looks unfamiliar, and query information about the package using rpm -qi pkg_name.



LPI Linux Certification in a Nutshell
LPI Linux Certification in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596005288
EAN: 2147483647
Year: 2004
Pages: 257

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net