2.1 Given a scenario, conduct software installations, configurations, updates, and removals Flashcards

1
Q

What does the .rpm extension indicate?

A

An .rpm extension indicates a Red Hat package file. Red Hat package files are managed with the rpm command

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

What does the .deb extension indicate?

A

A .deb extension indicates a Debian package file. Debian package files are managed with the dpkg command

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

What does the .tar extension indicate?

A

A .tar extension indicates a file that has been created with the tar command

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

What does the .tgz extension indicate?

A

A .tgz extension indicates a file that has been created with the tar command using the option to compress with the gzip utility

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

What does the .gz extension indicate?

A

A .gz extension indicates a file that has been created with the gzip command

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

What is the rpm command used for?

A

The rpm command is useful for installing, upgrading, and removing packages that are already downloaded on your system

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

What command allows you to perform queries?

A

rpm -qa cups

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

What is the command to manage local Debian packages?

A

The syntax of the dpkg command is as follows?

dpkg [option] command

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

Describe the apt-get command

A

Use the apt-get command to manage Debian packages that are located on a repository. This command makes use of the /etc/apt/sources.list file to determine which repository to use

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

What does the apt-cache command do?

A

The apt-cache command displays package information regarding the package cache

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

What utility is a menu-driven tool designed to make it easy to display, add, and remove packages?

A

aptitude

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

What is the yum command used for?

A

The yum command is used to install software from repositories. It can also be used to remove software and display information regarding software

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

What yum command is used to download software packages without installing the software?

A

The yumdownloader command

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

What is the primary configuration file for yum commands?

A

The /etc/yum.conf file is the primary configuration file for yum commands

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

What tool was designed and designated as an enhancement and replacement for yum?

A

The DNF tool is designed as an enhancement and replacement for yum. The majority of the changes were made to the “back end” of the software. Most dnf commands work just like yum commands, only with dnf being the command name.

On the back end, the DNF tool handled dependencies better and addressed some additional YUM deficiencies (such as using older versions of Python). YUM hasn’t been completely replaced, so knowing that either command may be used is important

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

What is the zypper command?

A

The zypper command is found on SUSE Linux. It is derived from the RPM software suite and works very similar to yum. It has automatic dependence checking and uses repositories. Its command structure and options are almost identical to yum. Here’s an example:

zypper install pkg_name
If you know how to use the yum command, then in most cases you can replace “yum” with “zypper” and the command will work successfully

17
Q

What is the make command used for?

A

The make command uses a file named Makefile to perform specific operations. The make command is a utility for building and maintaining programs and other types of files from source code. A primary function of the make utility is to determine which pieces of a large program need to be recompiled and to issue the commands necessary to recompile them. Each Makefile is written by the software developer to perform operations related to the software project

18
Q

What is the make install command used for?

A

The install option for the make command is designed to install code from source on the system. It may also include a compile process, depending on how the software developer created the Makefile

19
Q

What is the ldd command used for?

A

You can see what shared libraries a specific command uses by using the ldd command

ldd /bin/cp

The purpose of using the ldd command is to troubleshoot problems with code that you are writing. This command tells you not only what libraries are being called, but specifically which directory each library is being called from. This can be extremely useful when a library is not behaving as you would expect it to behave

20
Q

What is a compiler?

A

A compiler is a utility that takes source code (written in plain-text format) and converts it into executable binary code. There are many different compilers, each designed to work with a specific language. For example, the gcc compiler is used to compile code written in the C or C++ programming language

21
Q

What are shared libraries and where are the file locations on distributions?

A

Shared libraries are files used by executable programs. They are designed so developers can rely on established code to perform functions.

These shared libraries follow the naming convention libname.so.ver, where name is a unique name for the library and ver is used to indicate the version number of the library (for example, libkpathsea.so.6.1.1)

Normally shared library files are stored in one of the following locations on Linux distributions:

/lib or /lib64

/usr/lib or /usr/lib64

/usr/local/lib or /usr/local/lib64

22
Q

What are repositories?

A

A repository is a central location where information is stored. For software management, a repository is where software packages are stored. Utilities like apt and yum can connect to a repository, verify package dependencies, and install software packages

23
Q

What is the purpose of syncing repositories?

A

The process of repository syncing is to duplicate an existing repository onto the local system with the intent of making the local system either a standalone repository or a mirror repository. A mirror repository would need to be updated regularly using the syncing method so it contains the same package information as the original.

To sync a YUM repository, use the reposync command. To sync an APT repository, use the apt-mirror command

24
Q

How can you access repository system locations?

A

Most repository systems can be accessible via the local file system using FTP or HTTP

25
Q

What are the acquisition commands?

A

The acquisition commands are wget and curl

26
Q

How is the wget command used?

A

The wget command is designed to be a noninteractive tool to download files from remote systems via HTTP, HTTPS, or FTP. It is often used within scripts

wget http://onecoursesource.com

27
Q

How is the curl command used?

A

The curl command allows for noninteractive data transfer from a large number of protocols, including the following:

FTP

FTPS

HTTP

SCP

SFTP

SMB

SMBS

Telnet

TFTP

Although the curl command supports more protocols than the wget command, the wget command can perform recursive downloads and can recover from failed download attempts, making it advantageous in certain situations. The curl command also supports wildcard characters. The goal of both of the commands is essentially the same.

curl http://onecoursesource.com