Lesson 11: Managing Packages and Software Flashcards

1
Q

dpkg

A

allows you to install a package but Didnt handle depencies so apt-get was vreate to download dependciances which contained as cache
apt -cache used to maintine queeir cache

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

What is apt?

A

apt is the cmd line int for managing aptitude which allow you to install software

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

When installing software with apt, where is that software queried from?

A

software comes from a repository located in the /etc/apt/sources.list file or /etc/apt/sources.list.d folder

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

How do you search for the repo software on the system?

A

apt list {string}
apt search {string}

note. you can use the wildcard (*) to find anything that starts with {string}

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

How do install software located in the repository?

A

apt install {string}

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

How do install software not located in the repository?

A
  1. download package to system found on software website
  2. apt install {file_name}
    OR
    1.. utilize trusted repository if available
  3. add to the sources.list file
    (install key to verify security)
  4. update the apt cache > apt update
  5. install apt install {string}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is apt upgrade used for?

A

Used to download and install a update to the system

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

How do you upgrade you distribution, OS?

A

Run apt dist-upgrade

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

How do you uninstall a software?

A

apt remove {sting}

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

What is YUM stand for?

A

Yellow Dog Update Management.

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

What is DNF?

A

Dandified YUM serves as a update to YUM

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

What problem did YUM solve concerning RPM?

A

RPM did not track dependencies and you would have had to install each dependencies individually. YUM solves this by tracking dependencies

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

What is the rpm command is used for?

A

used to manage RPM packages on Red Hat-derived distributions. The syntax of the rpm command is rpm [options] [package name]

Option:

  • i {package name}Install the specified software
  • e {package name}Erase (uninstall) the package.
  • v Enable verbose mode, providing more detail.
  • h Print hash marks to indicate a progress bar.
  • V {package name}Verify the software components of the package exist.
  • qa List all installed software (typically a very largeoutput).
  • qi {package name} List information about a particular package.
  • qc {package name} List the configuration files for a particularpackage.
  • U —upgrades the installed package, and installs the package if it is not alreadyinstalled.
  • F —freshens the installed package, i.e., upgrades but does not install the packageif it is not already installed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Where can you browse yum repositories?

A

Go to /etc/yum.repos.d

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

How do you search for software using yum?

A

Yum list {string}

Yum search {string} - searches through metadata of packages and looks for keywords

Yum info {package_name}

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

How do you install software using yum?

A

yum install {software} or to install multiple software yum install {software} {software} {software}

17
Q

How do you add a yum repository?

A

navigate to /etc/yum.repos.d
create a new repository file
input information for 3rd party
for security reasons download and install a copy of public key

18
Q

How do you look for update using yum

A

yum update - update software, cache, and distribution

19
Q

How do you uninstall a software using yum?

A

yum remove {software}

20
Q

Why would you build a application from source code?

A

Some applications are not deployed or not distributed as a pre compiled binary

21
Q

What is compiling software?

A

Its taking a text and converting it to binary

22
Q

What is gcc?

A

GNU Compiler Collection

Make is also a good software to used with gcc
Gzip is another piece of useful software

23
Q

What is the software compilation process?

A
  1. Unpack download, typically using tar and/or gzip commands.
  2. Change into directory that gets created as part of the unpacking process.
  3. Run the ./ configure command to gather system information needed by the application (information is stored in the makefile)
  4. Use the make command to compile the application using the information stored in the makefile
  5. Use make install command to install the resulting binaries (the application).
24
Q

What is the purpose of tar?

A

The purpose is to bundle together multiple files into a single tarball with a .tar extension

Basic options for tar are as follows:

  • c Create the tarball
  • x Extract the tarball.
  • v Enable verbose mode.
  • r Append more files to an existing tarball.
  • t Test the tarball or see what files are included in the tarball.
  • f Specify the name of the tarball in the next argument (must be used as the last option).
25
Q

What is gzip?

A

one of the most common compression utility in the Linux

The basic commands for gzip:

gzip {file name} —Compresses the file and appends the .gz extension
gzip -d {file name} —Decompresses the file.

26
Q

What command enables a user to view shared library dependencies for an application?

A

The ldd command. The syntax of the ldd command is ldd [options] {program binary}