Linux Installers Flashcards

(37 cards)

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

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

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
Remove package and it dependencies with yum
yum autoremove httpd
26
Find with yum what package provides a specified file name
yum whatprovides */htpd
27
Download a package with yum
yum install yum-utils | yumdownloader htop
28
Rpm DB location
/var/lib/rpm
29
Repair corrupted rpm db
rpm --rebuilddb
30
List files in rpm package | List files in app
rpm -qpl htop.2.2.0.rpm | rpm -ql htop
31
Display info on rpm package
rpm -qpi htop.2.2.0.rpm | the info as yum info htop would provide
32
List all rpm packages installed on a system
rmp -qa | the same as yum list installed would provide
33
Install a package with rpm | Upgrade the package with a newer version
rpm -i htop.2.2.9.rpm or rpm -ivh htop.2.2.9.rpm | rpm -U htop.2.3.1.rpm
34
Uninstall rpm package
rpm -e htop
35
Verify installed rpm packages
rpm -Va
36
Query if rpm package is installed
rpm -q htop
37
List conf files of rpm package
rpm -qc sysstat