Managing Software Flashcards

1
Q

library

A
  • software component that can be used by many different programs
  • reduce disk space and memory requirements of complex programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

package management

A

relates to managing programs as files on disk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

foundational library upon which all other programs in the OS depend

A

linux kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

purpose of package mangement tools

A

maintain a database of installed files

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

software package

A

self-contained module with tracking for all modules/software on which it depends

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

package database

A
  • info about every file installed via package system
  • name of package to which it belongs
  • dependencies
  • checksums
  • upgrades and uninstallation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

checksum

A

signature of a file to ensure:

  • a package hasn’t been manipulated
  • to ensure installation is correct
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

two main package managers

A
  • rpm

- debian

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

True or False: RPM and Debian package management systems provide tools to help create binary packages

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

binary packages are installed from…

A

source code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

advantage of installing from source rather than compiling

A
  • track dependencies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

rpm and debian compatibility

A

two don’t work together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Suse package management

A

use RPM but are different enough

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

main Red Hat distributions

A
  • Red Hat Enterprise Linux, favored by servers
  • Fedora, favord by high level users desktop
  • Centos, enterprise users
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

RPM cross-platform capability

A
  • source RPMs are transportable across architectures (i.e. x86, AMD64)
  • some programs need no recompilation due to architecture-independed scripts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

RPM package nomenclature

A

packageName-version.Number-buildNumber.architecture.packagemanager
(i.e. Samba-server-3.0.25b-4.5mdv2008.0.x86_64.rpm)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

version information for package

A

can query the rpm bc information is retained within package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

distribution-specific scripts

A
  • sometimes startup scripts are included, but one may need to make their own
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

rpm switches

A
  • i installs package, system must not contain a package of same name
  • u installs new package or upgrades an existing pkg
  • f or -freshen: upgrades a pkg only if earlier version exists
  • q: queries a pkg, finds if installed, what it contains, and more
  • v or -verify: verifies a pkg, checks files are present and unmodified
  • e: uninstalls pkg
  • b: builds a binary pkg given source code and config files (moved to rpmbuild as of rpm4.2)
  • -rebuild: buils binary pkg (moved to rpmbuild as of rpm4.2)
  • -rebuilddb: rebuilds rpm db to fix errors
  • -root dir: modifies linux system having a root directory located at dir. Can be used to maintain one linux installation separate from another. Can be used during OS installation or emergency maintenance.
    • force complete action without prompt
  • i, -U, -F: forces install of a pkg even when it means overwriting existing files or pkgs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

command rpm

A
  • tool for red hat package management

- syntax: rpm [operation][options][pkg files | pkg names]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

cpio

A

tool to extract from rpm package

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

command rpm2cpio

A
  • transform rpm archive to cpio

- rpm2cpio [rpmFile] > [cpio file]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

cpio switches

A
  • i extract to archive
  • -make-directories to create directories
    (i. e. cpio -i –make-directories < [cpioFfile]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

yum tool

A
  • yum enables easy installation of pkgs and dependencies
  • meta-packager
  • locates all files for us by searching in a repository
  • syntax: yum [options] [command] [package…]
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
yum commands
- install - update, will update all if no pkg is specified - check-update discovers available updates - upgrade like update but will also check for obsolete software - remove or erase deletes pkg and dependencies from system - list displays info about a package such as version and available updates - provides or whatprovides displays info for a specified program or feature - search finds package names, summaries, packagers, descriptions - info displays information about a pkg - clean delets cache of downloaded packages - shell enters shell mode so you can enter multiple comamnds one after another - resolvedep displays pkgs matching specified dependency - localinstall isntalls specified local rpm file using yum repositories to resolve dependencies - localupdate updates system using specified local rpm files and yum repositories to resolve dependencies - deplist displays dependencies of specified pkg
26
rpm config file
/usr/lib/rpm/rpmrc
27
popular repositories
- livna - kde red hat - fresh rpms
28
main debian distributions
- ubuntu - libranet - xandros
29
debian compatability
neutral with respect to OS and cpu type
30
debian maintainers
volunteers
31
dpkg switches
- i or -install: installs pkg - -configure: reconfigure an install pkg, runs postinstallation script to set site-specific options - r, --remove: remove a pkg leave config files - P, --purge: remove a pkg and configs - p, --print-avail: display info about installed pkg - I or --info: displays info about an uninstalled pkg - l (lower L), --list: lists installed pkgs whose name matches pattern - L, --listfiles: lists installed files asociated with a pkg - S, --search: locates pkg that own file specified by pattern - C, --audit: searches for partially installed pkgs and suggest what to do with them
32
apt
- apt enables easy installation of pkgs and dependencies - debian meta-packager - locates all files for us by searching in a repository - syntax: apt [options] [command] [package...]
33
dselect
- dselect enables easy installation of pkgs and dependencies - debian meta-packager - locates all files for us by searching in a repository - syntax: dselect [options] [command] [package...]
34
command apt-cache
- provide info about debian pkg database
35
command apt-cache showpkg
- displays info about pkg | - syntax: apt-cache showpkg [packageName]
36
command apt-cache stats
- displays pkg info, pkg statistics | - syntax: apt-cache stats
37
command apt-cache depends
- displays dependencies | - syntax: apt-cache depends [packageName]
38
command apt-cache unmet
- find unmet dependencies | - syntax: apt-cache unmet
39
command apt-cache pkgnames
- displays all installed pkgs - finds only those which include a pattern if provided - syntax: apt-cache pkgnames [pattern]
40
apt repositories config
/etc/apt/sources.list
41
command apt
- allows one to get softare from list of repositiories easily - syntax: apt [options]
42
apt update
- apt update: obtains updated info about pkgs available from /etc/apt/sources.list
43
apt upgrade
apt command which upgrades all installed pkgs to newest versions available based on locally stored info about available pkgs
44
apt install
apt command which installs a pkg by name, obtaining from source that contains recent version
45
apt remove
apt command which deletes a specified pkg by name
46
apt source
apt command which retrieves newest available source pkg file by pkg filename using info from installation archives listed in /etc/apt/sources.list
47
apt clean
apt command which checks pkg db for consistency and broken installations
48
apt check
apt command which performs housekeeping to clear out info about retrieved files from debian pkg db
49
apt autoclean
apt command similar to clean but removes info only about pkgs that can no longer be downloaded
50
dselect tool
- high-level package browser for debian - select pkgs to intall from apt archives defined in /etc/apt/sources.list - review packages already installed, uninstall, and upgrade - similar to apt tool
51
aptitude tool
- interactive mode similar to dselect - adds menus accessed by ctrl+T and rearranges some features - combines interactive features of dselect with cli options of apt
52
configuration file for debian package tools
- dpkg: /etc/dpkg/dpkg.cfg or ~/.dpkg.cfg - apt: /etc/apt/sources.list - apt and dselect optins: /etc/apt/apt.conf
53
tool to convert between debian package formats
- Alien - requires appropriate package manager software installed - not 100% reliable dependency info conversion - works only if original tarball has files that should be isntalled off / directory - does not use db features of these packages unless you choose the --install option
54
command alien
- syntax: alien [options] file[] | - debian format is default
55
alien switches
--to-deb: convert to debian --to-rpm: convert to rpm --to-slp: convert to stampede --to-tgz: conver to tarball (i.e. tar xvfz program.tar.gz mv program-files usr tar cvfz program.tgz usr rm -r usr alien --to-rpm program.tgz)
56
.so
shared object
57
static library nomenclature
.a filename extensions
58
shared library nomenclature
.so or so.version filename extensions
59
how can binary program fils point to libraries?
- name (i.e. libc.so.6) | - complete path (i.e. /lib/libc.so.6)
60
how to configure a library path
- global config file - env variable - /etc/ld.so.conf contains list of directories containing libraries - /etc/ld.so.conf.d/*.conf contains a number of config files
61
config file containing a list of directories containing libraries
/etc/ld.so.conf
62
type of line to treat config files within a directory as if they were part of the main /etc/ld.so.conf
include /etc/ld.so.conf.d/*.conf
63
libraries always on the library path, always refered to by Linuxq
- /lib | - /usr/lib
64
library path environment variable
LD_LIBRARY_PATH | i.e. export LD_LIBRARY_PATH=/usr/local/testlib:/opt/newlib will add two directories to the path
65
ldd
displays a program's shared library dependencies
66
ldconfig
updates caches and links used by the system for locating libraries. It reads /etc/ld.so.conf and implements changesin that file or in the directories to which the file refers.
67
command ldd
- syntax: ldd [options] | - can be run by ordinary and root users
68
essential step after adding or removing libraries
reload /etc/ld.so.cache
69
True or False: ld.so and ld-linux.so programs read /etc/ld.so.conf every run
false, they use the cache in /etc/ld.so.cache
70
RPM and Debian automatically do this step after installing or removing packages
run ldconfig