Sec. 10 Apt Flashcards

1
Q

How would I check to see if there were any updates using apt?

A

$ sudo apt -update

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

If I wanted to upgrade the system i.e. install new versions of the packages that I already have installed how would I use apt?

A

sudo apt -upgrade

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

apt-cache

A
  • query the APT cache
  • apt-cache
    • perfoms a cariety of operation on APT’s package cache
    • does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

apt-cache

–showpkg pkg…..

A
  • displays info about the packages listed on the command line
  • remaining arguments are package names
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

apt-cache

stats

A
  • stats displays statistics about the cache.
  • no further arg. are expected.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

List all installed kernel-related packages, and list all installed or available ones.

A

$ apt-cache search “kernel”
$ apt-cache search -n “kernel”
$ apt-cache pkgnames “kernel”

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

. All packages that contain a reference to bash in their name or description.

A

$ apt-cache search bash

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

. Installed and available bash packages.

A

. $ apt-cache search -n bash

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

The package information for bash.

A

$ apt-cache show bash

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

The dependencies for the bash package.

A

$ apt-cache depends bash
$ apt-cache rdepends bash

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

To get a list of of available metapackages:

A

$ apt-cache search metapackage

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

apt-cache stats

A

displays some statistics about the cache.

no further arg are needed

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

apt-cache showpkg pkg

A

displays info about the packages listed on the command line.

remaining arg are package names

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

apt-cache showsrc pkg….

A

displays all the source package records that match the given package names .

all versions are shown, as well as all records that declare the name to be a binary package.

use –only-source to display only source packages names

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

apt-cache dump

A

shows a short list of every package in the cache

used primarily for debugging

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

apt-cache dumpavail

A

prints out an available list to stdout .

17
Q

apt-cache unmet

A

show a summary of all unmet dependencies in the package cache

18
Q

apt-cache show pkg….

A

performs a function simlar to dpkg –print-avail ; it displays the package records for the named packages .

19
Q

apt-search regex……

A

performs a full text search on all available package lists for the POSIX regex pattern given,

it searches package names and the descriptions, including virtual package names .

if –full is given then the output identical to shwo is produced for each matched package.

20
Q

apt-cache depends pkg….

A

shows a listing of each dependency a package has and all the possible other packages that can fulfill that dependency.

21
Q

apt-cache rdepends pkg….

A

shows a listing of each reverse dependency a package has.

22
Q

apt-cache pkgnames [prefix]

A

this command prints the name of each package apt knows.

23
Q

apt

A

command line interface

apt provides a high-level comandline interface for the package management system

24
Q
A