Package Management Flashcards Preview

Linux Plux - XK0-004 > Package Management > Flashcards

Flashcards in Package Management Deck (22)
Loading flashcards...
1

dpkg --info

shows information about a package from a package file

2

dpkg --status

an abbreviated version of --info

3

dpkg --search

searches for a package via package database. will include file names in the search

4

dpkg --list

searches for a package via the package database. a good way to see if the package is installed

5

apt dist-upgrade

will update all packages on the system and will remove minor packages to fix dependencies issues

6

apt upgrade

will update all packages on the system but will not remove anything

7

apt update

reads the /etc/apt/sources.list and updates local cache

8

apt-cache search

searches for a package in remote repos

9

apt-cache show

shows information about a package and its dependencies

10

apt-cache showpkg

shows information about packages but more detailed then show

11

rpm -K

checks the MD5 GPG signature

12

rpm -i

install a package

13

rpm -V

verifies the package, runs some tests

14

rpm -e

erase or remove a package

15

rpm -U

upgrades a package. will install a package if its not installed

16

rpm -F

freshens a package, it will upgrade a package but will not install it if it is not currently installed

17

rpm -q

queries to see if a package is installed

18

rpm -qil

used for installed packages, with short or long name format

19

rpm -qilp

used for uninstalled packages with a file specified

20

yum list

searches remote repos for a package

21

main config file for yum

/etc/yum.conf

22

yum repo config files are store in this dir

/etc/yum.repos.d