Installation and Package Management Flashcards
Type code for FAT
0x0c
Type code for NTFS
0x07
Type code of newer type of extended partition
0x0f
Type code for Linux swap
0x82
Type code for Linux filesystem
0x83
GRUB1 Configuration File
/boot/grub/menu.lst
GRUB2 Configuration File
/boot/grub/grub.cfg
ldd
Print shared library dependencies for the indicated program or file
LD_LIBRARY_PATH
Bash environment variable that determines additional library locations to be searched when looking for shared libraries
ldconfig
Program you run after adding to the /etc/ld.so.conf file
File that stores shared library paths
/etc/ld.so.conf
File that stores the repository locations that apt uses to search for packages
/etc/apt/sources.list
apt-get
- Package handling and installation utility for Debian-based distributions
- Will include dependent packages during install
dpkg
Used to install .deb package files on Debian-based systems
dpkg -i
Install a package
dpkg -r
Remove a package
dpkg –configure
Configures a package
dpkg -c
Lists contents of a package
dpkg -s
Lists status of a package (whether installed or not)
apt-cache pkgname
Shows if installed
apt-cache search
Search for a named package
How to reconfigure an already installed package with dpkg?
dpkg-reconfigure
aptitude
High level package management interface for Debian based distributions
rpm
package installation utility for Red Hat based distributions
rpm –nodeps
Install the package without worrying about installed dependencies
rpm -i
Install
rpm -K
Check package signature (same as rpm –checksig)
rpm -V
Verify
rpm -a
Selects all packages
rpm -U
Upgrades or installs a new package
rpm -F
Upgrade a package already installed
rpm -q
Query a package
rpm -e
Erase or uninstall
rpm -l
List files in a package
rpm –rebuild
Rebuilds a source package
rpm –rebuilddb
Rebuilds the rpm database
rpm -qa
Prints all installed packages
rpm -ql
List files in an installed package
rpm -qf
Determine which installed package a file belongs to
rpm -qpl
List all files in an RPM package
rpm –checksig
Checks package signature (same as rpm -K)
Directory containing yum source repository files
/etc/yum.repos.d
cpio
Command used to create a cpio archive
cpio -d
Create leading directories where needed
cpio -i
Extract
cpio -u
Replace all files without asking
cpio -m
Retain previous modification times when creating files
rpm2cpio
- Convert RPM packages to CPIO compressed files
- Used primarily to extract files from a RPM package without installing the rpm package