102.4 Use Debian package management Flashcards

1
Q

What does apt mean?

A

Advanced Package Tool

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

What distros of Linux use apt?

A

Debian based distros

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

What is apt used for?

A

To install applications and their dependencies.
To remove applications
To update/upgrade packages

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

What does the /etc/apt/sources.list file contain?

A

It contains URL listings for all software repositories that you can install software from

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

What is the command to update the local apt cache with a listing of packages that can be updated and installed?

A

apt-get update

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

What is the command that upgrades the packages that have upgrades available?

A

apt-get upgrade

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

What is a difference between apt and dpkg regarding dependencies?

A

The apt tool handles dependencies for you, the dpkg does not.

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

What is the command that removes an application in a Debian based system?

A

apt-get remove packagename

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

Does apt remove an application and the dependencies and configuration files of the application?

A

No, it will only remove the app itself.

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

What is the command that removes an application’s packages that are no longer needed in a Debian based system?

A

apt autoremove

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

What is the command that removes an application’s config files in a Debian based system?

A

apt-get purge packagename

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

What is the command that upgrades all packages on the system up to the next release of the distribution?

A

apt-get dist-upgrade

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

What is the command that downloads a package but doesn’t install it in a Debian based system?

A

apt-get download packagename

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

What is the command that searches through your local apt cache for a package that can be installed?

A

apt-cache search

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

What is the command that provides more technical information about a package?

A

apt-cache showpkg packagename

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

What type of file does dbpk use?

A

.deb

17
Q

What is the command that removes an application’s config files in a Debian based system?

A

apt-get purge packagename

18
Q

What command do you use to list out Debian packages already installed in the system?

A

dpkg -l packagename

19
Q

What command do you use to see info about a .deb package with less details that –info?

A

dpkg –status packagename

20
Q

What is dpkg?

A

It is the Debian package tool

21
Q

What does a .deb file contain?

A
  • the app or utility
  • default config files for the app
  • instructions on how and where to install the files
  • list of dependencies the app requires
22
Q

What command do yo use to install a .deb package?

A

dpkg -i packagename

23
Q

What command do you use to list out all the files that were installed with a specified .deb package?

A

dpkg - L packagename

24
Q

What command do you use to remove a .deb package?

A

dpkg -r packagename (this command leaves the config files still in the system)

25
Q

What command do you use to remove a .deb package and remove any config files of the package?

A

dpkg -P packagename

26
Q

What command do you use to see if there is anything within the dpkg database that refers to an app?

A

dpkg -S packagename

27
Q

What command allows the modification of a package that is already installed by re-running the app’s config tool in a Debian based system?

A

dpkg -reconfigure packagename

28
Q

What is the command that lists out basic information about a package?

A

apt-cache show packagename

29
Q

What is the command to install an application in a Debian based system?

A

apt-get install packagename