Topic2: Linux Installation and Package management Flashcards
Woodhaven Road
- Woodhaven Attic Shelves
cmd used to update the list of available packages when using dpkg based package management
apt-get update
- Attic Right Window
Top level system directory is used for files and data that change regularly while the system is running and are to be kept between reboots
/var/
3: Attic Middle Window
command updates the linker cache of shared libraries
ldconfig
4: Attic Shell Window
function key is used to start Safe Mode in WIndows NT
Windows NT does not support Safe Mode
5: Attic Middle Window
diff between –remove and –purge action with dpkg cmd
–remove removes the program –purge also removes the config files
6: Attic Organ
command will disable swapping on a device
swapoff
/sbin/swapoff
7: Attic Organ Bench
option to the yum command will update the entire system
update, upgrade
8: Attic Ledge behind Organ
What can Logical Volume Manager (LVM) be used for
dynamically change the size of logical volumes
create snapshots
dynamically create or delete logical volumes
9: Attic Ledge facing futon
When speaking about mount points
every existing directory can be used as a mount point.
10: Attic Futon
in which directory must definition files be placed to add additional repositories to yum
/etc/yum.repos.d/
11: Attic Side Window
Which of the following commands can be used to download RPM package kernel without installing it
yumdownloader kernel
12: Attic Hole in wall
command lists all currently installed packages when using RPM package management
rpm –query –all
13: Attic choo choo train
admin issued following cmd
grub-install –root-directory=/custom-grub /dev/sda
in which directory will new config files be found
/custom-grub/boot/grub
14: Attic Bathroom Sink
world-writeable directory should be placed on a separate partition in order to prevent users from being able to fill up / filesystem
/tmp
/var/tmp
15: Attic Bathroom Cabinet
what apt-get command will install the newest versions of all currently installed packages without removing any packages or installing new packages that are not already installed.
upgrade
16: Attic Bathroom Toilet
when removing a package when dpkg option will completely remove the files including configuration files
–purge
17: Attic Bathroom Shower
what command lists the dependencies of a given dpkg package
apt-cache depends package
18: Attic Ledge Facing Bathroom
main config file for GNU GRUB
menu.lst
grub.conf
grub.cfg
19: Attic Stairs
what file should be edited to select the network location from which Debian installation package files are loaded
/etc/apt/sources.list
20: Attic Door to Second Floor
Debian package management tool asks the config questions for a specific already installed package just as if the package were being installed for the first time.
dpkg-reconfigure
21: Second Floor Landing
cmd overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it
dd if=/dev/zero of=/dev/sda bs=440 count=1
22: Conor’s Closet
dpkg-_____ cmd will ask config questions for a specified package just as if the package were being installed for the first time
dpkg-reconfigure
23: Conor’s Bed
you want to preview where package file, apacke-xml.i386.rpm will install before installing it - what command do you issue
rpm -qpl apache-xml.i386.rpm
24: Conor’s Window
cmd can be used to perform a full text search on all available packages on a Debian system
apt-cache
25: Conor’s Mirrors
after modifying GNU GRUB’s config file which cmd must be run for changes to take effect
no action required.
26: Conor’s Dresser
option used in GRUB Legacy config file to define the amount of time that GRUB menu will be shown to the user
timeout
27: Conor’s Shelves
what environment variable will you assign or append a value if you need to tell the dynamic linker to look in a build directory for some of a program’s shared libraries
LD_LIBRARY_PATH
28: Conor’s Door
what RPM command will output the name of the package that supplied the file /etc/exports
rpm -qf /etc/exports
29: Landing Outside Conor’s Room
Which of the following environment variables overrides or extends the list of directories holding shared libraries
LD_LIBRARY_PATH