2.1 Given a scenario, conduct software installations, configurations, updates, and removals Flashcards
What does the .rpm extension indicate?
An .rpm extension indicates a Red Hat package file. Red Hat package files are managed with the rpm command
What does the .deb extension indicate?
A .deb extension indicates a Debian package file. Debian package files are managed with the dpkg command
What does the .tar extension indicate?
A .tar extension indicates a file that has been created with the tar command
What does the .tgz extension indicate?
A .tgz extension indicates a file that has been created with the tar command using the option to compress with the gzip utility
What does the .gz extension indicate?
A .gz extension indicates a file that has been created with the gzip command
What is the rpm command used for?
The rpm command is useful for installing, upgrading, and removing packages that are already downloaded on your system
What command allows you to perform queries?
rpm -qa cups
What is the command to manage local Debian packages?
The syntax of the dpkg command is as follows?
dpkg [option] command
Describe the apt-get command
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
What does the apt-cache command do?
The apt-cache command displays package information regarding the package cache
What utility is a menu-driven tool designed to make it easy to display, add, and remove packages?
aptitude
What is the yum command used for?
The yum command is used to install software from repositories. It can also be used to remove software and display information regarding software
What yum command is used to download software packages without installing the software?
The yumdownloader command
What is the primary configuration file for yum commands?
The /etc/yum.conf file is the primary configuration file for yum commands
What tool was designed and designated as an enhancement and replacement for yum?
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
What is the zypper command?
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
What is the make command used for?
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
What is the make install command used for?
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
What is the ldd command used for?
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
What is a compiler?
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
What are shared libraries and where are the file locations on distributions?
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
What are repositories?
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
What is the purpose of syncing repositories?
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
How can you access repository system locations?
Most repository systems can be accessible via the local file system using FTP or HTTP
What are the acquisition commands?
The acquisition commands are wget and curl
How is the wget command used?
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
How is the curl command used?
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