Linux Installers Flashcards

1
Q

apt basics

A

apt reads /etc/apt/sources.list
which contains repositories
apt directs installations/uninstallations to dpkg

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

Update the local apt cache with listing of packages, so to search for packages later on from this apt-cache

A

apt-get update

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

Upgrade packages that have upgrades available

A

apt-get upgrade

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

Install/remove packages with apt

Remove conf files that left after removing a package

A

apt-get install apache2
apt-get remove apache2
apt autoremove

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

Remove the package with its conf files with apt

A

apt-get purge chromium-browser

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

Upgrade all packages up to the next release with apt-get

A

apt-get dist-upgrade

so all new necessary packages will be installed while upgrading the current package

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

Download a package but not install this with apt

A

apt-get download htop

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

Search for packages with apt

A

apt-cache search apache

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

List basic info about a package with apt

A

apt-cache show apache2

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

List detailed info about a package with apt

A

apt-cache showpkg apache2

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

Display detailed info on a package with dpkg

Display basic info on a package with dpkg

A
  1. dpkg –info htop_2.01.deb

2. dpkg –status htop_2.01.deb

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

List packages that match the string provided with dpkg

A

dpkg -l nano

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

Install package with dpkg

Remove package

A

dpkg -i htop_2.01.deb

dpkg -r htop

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

List all files installed with dpkg package

A

dpkg -L htop

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

Remove package with dpkg with conf files

A

dpkg -P nano

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

Search through package DB for a file specified with dpkg

A

dpkg -S nano

17
Q

Allows to modification of deb package by re-running app’s configuration tool

A

dpkg-reconfigure console-setup

18
Q

Yum global conf file
Yum’s repositories
Yum cash location of latest requests

A

/etc/yum.conf
/etc/yum.repos.d/
/var/cache/yum

19
Q

Search online repos with updates to upgrade packages with yum

A

yum update

20
Q

Search for specific package with yum

A

yum search httpd

21
Q

Get info about specific package with yum

A

yum info httpd

22
Q

Display all packages installed by yum

A

yum list installed | grep httpd

23
Q

Clean yum cache info and its local db file

A

yum clean all

24
Q

Install/remove/reinstall app with yum

A

yum -y install httpd
yum remove httpd
yum reinstall httpd

25
Q

Remove package and it dependencies with yum

A

yum autoremove httpd

26
Q

Find with yum what package provides a specified file name

A

yum whatprovides */htpd

27
Q

Download a package with yum

A

yum install yum-utils

yumdownloader htop

28
Q

Rpm DB location

A

/var/lib/rpm

29
Q

Repair corrupted rpm db

A

rpm –rebuilddb

30
Q

List files in rpm package

List files in app

A

rpm -qpl htop.2.2.0.rpm

rpm -ql htop

31
Q

Display info on rpm package

A

rpm -qpi htop.2.2.0.rpm

the info as yum info htop would provide

32
Q

List all rpm packages installed on a system

A

rmp -qa

the same as yum list installed would provide

33
Q

Install a package with rpm

Upgrade the package with a newer version

A

rpm -i htop.2.2.9.rpm or rpm -ivh htop.2.2.9.rpm

rpm -U htop.2.3.1.rpm

34
Q

Uninstall rpm package

A

rpm -e htop

35
Q

Verify installed rpm packages

A

rpm -Va

36
Q

Query if rpm package is installed

A

rpm -q htop

37
Q

List conf files of rpm package

A

rpm -qc sysstat