LPI 101 - Instalacao E Gerenciamento De Pacotes 1- Marcus Vinicius Braga Alcantara

Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By Viniciusalcantar
V
Viniciusalcantar
Community Contributor
Quizzes Created: 11 | Total Attempts: 6,374
Questions: 100 | Attempts: 659

SettingsSettingsSettings
LPI 101 - Instalacao E Gerenciamento De Pacotes 1- Marcus Vinicius Braga Alcantara - Quiz

.


Questions and Answers
  • 1. 

    Com qual comando é possível visualizar todos os pacotes RPM instalados ?

    • A.

      rpm --fscontext

    • B.

      rpm --allfiles

    • C.

      rpm -qa

    • D.

      rpm --list

    Correct Answer
    C. rpm -qa
    Explanation
    The correct answer is "rpm -qa". This command is used to query all installed RPM packages on a system. It provides a list of all the packages along with their versions that are currently installed on the system.

    Rate this question:

  • 2. 

    Qual comando do gerenciador de pacotes YUM é usado quando desejamos atualizar a lista de pacotes a partir do arquivo de repositório do Sistema ?

    • A.

      yum update

    • B.

      yum --update

    • C.

      yum check-update

    • D.

      yum provides

    Correct Answer
    A. yum update
    Explanation
    The correct answer is "yum update". This command is used in the YUM package manager to update the package list from the repository file of the system. It allows the user to download and install the latest versions of packages available in the repository.

    Rate this question:

  • 3. 

    Qual é o arquivo da distribuição Debian GNU/Linux onde contém informações de repositórios para arquivos .deb ?

    • A.

      /etc/dpkg/dpkg.cfg

    • B.

      /etc/apt.conf

    • C.

      /etc/apt/sources.list

    • D.

      /etc/deb.conf

    Correct Answer
    C. /etc/apt/sources.list
    Explanation
    The correct answer is /etc/apt/sources.list. This file in the Debian GNU/Linux distribution contains information about repositories for .deb files. It is used by the Advanced Package Tool (APT) to determine where to download packages from and which versions are available. The sources.list file lists the URLs or file paths of the repositories, allowing users to easily add or remove software sources for package installation and updates.

    Rate this question:

  • 4. 

    Qual comando pode ser usado para remover um pacote e seus arquivos de configuração ?

    • A.

      dpkg -r --force

    • B.

      aptitude remove

    • C.

      apt-get remove --purge

    • D.

      dpkg -r

    Correct Answer
    C. apt-get remove --purge
    Explanation
    The correct answer is "apt-get remove --purge" because this command is used to remove a package and its configuration files completely from the system. The "--purge" option ensures that all associated files and configurations are removed along with the package.

    Rate this question:

  • 5. 

    Por padrão, em qual diretório ficam armazenados os pacotes que foram baixados pelo yum ?

    • A.

      /var/packages/rpm

    • B.

      /var/yum

    • C.

      /var/cache/yum

    • D.

      /var/lib/rpm

    Correct Answer
    C. /var/cache/yum
    Explanation
    The correct answer is /var/cache/yum. This directory is the default location where yum stores downloaded packages.

    Rate this question:

  • 6. 

    Qual comando abaixo pode ser usado para instalar o pacote sudo_1.7.4p4-5_i386.deb ?

    • A.

      dpkg -i sudo_1.7.4p4-5_i386.deb

    • B.

      aptitude sudo_1.7.4p4-5_i386.deb

    • C.

      apt-install sudo_1.7.4p4-5_i386.deb

    • D.

      apt-get install sudo_1.7.4p4-5_i386.deb

    Correct Answer
    A. dpkg -i sudo_1.7.4p4-5_i386.deb
    Explanation
    The correct answer is "dpkg -i sudo_1.7.4p4-5_i386.deb". This command is used to install a package in Debian-based systems using the dpkg package management tool. The "-i" option specifies that the package should be installed, and "sudo_1.7.4p4-5_i386.deb" is the name of the package file that needs to be installed.

    Rate this question:

  • 7. 

    Qual o comando que atualiza as informações dos repositórios de uma distribuição Debian GNU/Linux ?

    • A.

      apt-get check

    • B.

      aptitude update

    • C.

      aptitude full-upgrade

    • D.

      apt-get upgrade

    Correct Answer
    B. aptitude update
    Explanation
    The correct answer is "aptitude update". This command is used to update the information about the available packages in the repositories of a Debian GNU/Linux distribution. It downloads the latest package lists from the repositories and updates the cache on the local machine, allowing the user to install or upgrade packages using the most recent information.

    Rate this question:

  • 8. 

    Qual dos comandos abaixo pode ser usado para procurar um pacote .deb dos repositórios definidos em minha distribuição Debian GNU/Linux ? (Selecione 2 respostas) 

    • A.

      apt-search

    • B.

      apt-get

    • C.

      aptitude

    • D.

      apt-cache

    Correct Answer(s)
    C. aptitude
    D. apt-cache
    Explanation
    The correct answer is aptitude and apt-cache. Both aptitude and apt-cache are commands that can be used to search for a .deb package in the repositories defined in a Debian GNU/Linux distribution. aptitude is a high-level interface to the package management system and can be used to search for packages, install, remove, and upgrade them. apt-cache is a low-level command that allows users to query the package cache and retrieve information about available packages.

    Rate this question:

  • 9. 

    Especifique o caminho completo do arquivo de configuração do gerenciador de pacotes YUM.

    Correct Answer(s)
    /etc/yum.conf
    Explanation
    The correct answer is /etc/yum.conf. This file is located in the /etc directory and is the configuration file for the YUM package manager. YUM is used in many Linux distributions to manage software packages, and the yum.conf file contains various settings and options for the package manager. By specifying the complete path of this file, users can access and modify the YUM configuration as needed.

    Rate this question:

  • 10. 

    Qual o correto comando do gerenciador de pacotes RPM que atualiza um pacote somente se o mesmo já estiver instalado no Sistema ?

    • A.

      rpm -i nome_do_pacote

    • B.

      rpm -F nome_do_pacote

    • C.

      rpm -e nome_do_pacote

    • D.

      rpm -u nome_do_pacote

    Correct Answer
    B. rpm -F nome_do_pacote
    Explanation
    The correct command of the RPM package manager that updates a package only if it is already installed on the system is "rpm -F nome_do_pacote". This command is used to upgrade a package to a newer version, but only if the package is already installed on the system. If the package is not installed, this command will not perform any update.

    Rate this question:

  • 11. 

    Qual dos comandos abaixo pode ser usado para instalar o pacote xsudoky-1.0.5-1.x86_64.rpm ?

    • A.

      rpm -e xsudoky-1.0.5-1.x86_64.rpm

    • B.

      rpm -V xsudoky-1.0.5-1.x86_64.rpm

    • C.

      rpm --install xsudoky-1.0.5-1.x86_64.rpm

    • D.

      rpm -qpl xsudoky-1.0.5-1.x86_64.rpm

    Correct Answer
    C. rpm --install xsudoky-1.0.5-1.x86_64.rpm
    Explanation
    The correct answer is "rpm --install xsudoky-1.0.5-1.x86_64.rpm". This command is used to install the package xsudoky-1.0.5-1.x86_64.rpm.

    Rate this question:

  • 12. 

    Qual o comando e a opção que são usados para listar todos os arquivos no sistema associados a um pacote .deb instalado?

    • A.

      dpkg -L

    • B.

      dpkg - s

    • C.

      dpkg -l

    • D.

      dpkg -S

    Correct Answer
    A. dpkg -L
    Explanation
    The correct answer is dpkg -L. This command is used to list all the files in the system associated with a installed .deb package.

    Rate this question:

  • 13. 

    Você tem um RPM atualizado chamado screensaver-1.1.i386.rpm. Você tem a versão 1.0 instalada. Usando o RPM, como você vê o changelog deste arquivo para ver se você deve instalar a atualização ?

    • A.

      rpm -showchangelog screensaver-1.1.i386. rpm

    • B.

      rpm -qc screensaver-1.1.i386. rpm

    • C.

      rpm --changelog screensaver-1.1.i386. rpm

    • D.

      rpm -qp --changelog screensaver-1.1.i386. rpm

    Correct Answer
    D. rpm -qp --changelog screensaver-1.1.i386. rpm
    Explanation
    To view the changelog of the screensaver-1.1.i386.rpm file and determine if the update should be installed, the correct command is "rpm -qp --changelog screensaver-1.1.i386.rpm". This command uses the rpm tool with the "-qp" option to query the package and the "--changelog" option to display the changelog information. By running this command, the user can see the changelog of the updated RPM file and make an informed decision about whether to install the update.

    Rate this question:

  • 14. 

    Você está prestes a instalar um novo programa em um sistema Linux baseado em RPM. Qual das seguintes alternativas seria a melhor maneira de conseguir isso ?

    • A.

      Obter o código-fonte de um arquivo .tar e instalar a partir dessa fonte.

    • B.

      Usar o cpio para extrair os binários de uma fonte RPM e usar rpm para instalar essas fontes.

    • C.

      Obter um RPM fonte e usar rpm para instalá-lo .

    • D.

      Utilizar o rpm para instalar os binários do programa a partir de um pacote RPM.

    Correct Answer
    D. Utilizar o rpm para instalar os binários do programa a partir de um pacote RPM.
    Explanation
    The best way to install a new program on a Linux system based on RPM would be to use the rpm command to install the program binaries from an RPM package. This is the most straightforward and efficient method for installing programs on RPM-based systems. Obtaining the source code and installing from source or using cpio to extract binaries from an RPM source are not the recommended methods for installing a program in this scenario.

    Rate this question:

  • 15. 

    Você instalou um pacote rpm beta, mas está enfrentando alguns problemas com ele. Como você pode remover esse pacote ?

    • A.

      rpm -qe rpmname

    • B.

      rpm -r rpmname

    • C.

      rpm -V --remove rpmname

    • D.

      rpm -d rpmname

    • E.

      rpm -ev rpmname

    Correct Answer
    E. rpm -ev rpmname
    Explanation
    To remove a package in RPM, you can use the command "rpm -ev rpmname". This command will uninstall the specified package, including all its files and dependencies. It is the correct answer because it specifically addresses the task of removing a package, while the other options listed do not perform the same action.

    Rate this question:

  • 16. 

    Você vê a seguinte saída ao tentar instalar um pacote de atualização ao executar o seguinte comando: rpm -i gthumb-2.2.0.i386.rpm1.0.1.i386.rpm :--->> "gthumb-1.0.1.i386.rpm já está instalado". Qual comando permitirá que você instale a versão atualizada ?

    • A.

      rpm -qiv gthumb-2.2.0.i386.rpm

    • B.

      rpm -qu gthumb-2.2.0.i386.rpm

    • C.

      rpm -i gthumb-2.2.0.i386.rpm

    • D.

      rpm -U gthumb-2.2.0.i3S6.rpm

    • E.

      rpm -ivh gthumb-2.2.0.i386.rpm

    Correct Answer
    D. rpm -U gthumb-2.2.0.i3S6.rpm
    Explanation
    The correct answer is "rpm -U gthumb-2.2.0.i3S6.rpm". The -U option in the rpm command stands for "upgrade", which allows you to upgrade an already installed package to a newer version. By using the -U option and specifying the name of the updated package, you can install the updated version of gthumb.

    Rate this question:

  • 17. 

    Você precisa saber onde estão localizados todos os arquivos de configuração para o pacote “postfix” instalado. Supondo que ele foi instalado com rpm, qual comando irá listar essas informações para você?

    • A.

      rpm --config postfix

    • B.

      rpm -qc postfix

    • C.

      rpm -Vc postfix

    • D.

      rpm -listconfig postfix

    • E.

      rpm -qa --config postfix

    Correct Answer
    B. rpm -qc postfix
    Explanation
    The command "rpm -qc postfix" will list the locations of all configuration files for the installed "postfix" package.

    Rate this question:

  • 18. 

    Qual comando permitirá que você encontre um pacote instalado específico?

    • A.

      rpm --list rpmname

    • B.

      rpm -qvl rpmname

    • C.

      rpm rpmname

    • D.

      rpm -qv rpmname

    • E.

      rpm -f rpmname

    Correct Answer
    D. rpm -qv rpmname
    Explanation
    The command "rpm -qv rpmname" allows you to find a specific installed package.

    Rate this question:

  • 19. 

    Depois de um incidente de segurança, o administrador deve verificar determinado RPM instalado. Qual comando irá criar um relatório completo, que você pode analisar as mudanças relacionados com a segurança?

    • A.

      rpm -Qavy > report

    • B.

      rpm -Va > report

    • C.

      rpm -Vqt --nomd5 > report

    • D.

      rpm -Va --nofiles > report

    • E.

      rpm --checkfiles > report

    Correct Answer
    B. rpm -Va > report
    Explanation
    The command "rpm -Va > report" will create a complete report that allows the administrator to analyze the security-related changes. The "-Va" option verifies all installed packages and checks for any modifications in files, permissions, ownership, and checksums. The output will be redirected to a file named "report" for further analysis.

    Rate this question:

  • 20. 

    Qual comando "apt" é utilizado para adicionar um repositório a partir de um CD-DVD/ROM no arquivo /etc/apt/sources.list ?

    • A.

      apt-get --cdrom

    • B.

      apt-add cdrom

    • C.

      apt-cdrom add

    • D.

      apt-get --cdrom /etc/apt/sources.list

    Correct Answer
    C. apt-cdrom add
    Explanation
    The correct answer is "apt-cdrom add". This command is used to add a repository from a CD-DVD/ROM to the file /etc/apt/sources.list. It allows the user to include the CD/DVD as a source for package installations and updates using the apt package manager.

    Rate this question:

  • 21. 

    Qual comando "apt" remove todos os pacotes baixados e já instalados?

    • A.

      apt-get clean

    • B.

      apt-get autoclean

    • C.

      apt-clean

    • D.

      apt-get remove --all-packages

    Correct Answer
    A. apt-get clean
    Explanation
    The command "apt-get clean" removes all downloaded and already installed packages.

    Rate this question:

  • 22. 

    Qual comando "apt" apaga todos os pacotes que não possam mais ser baixados ?

    • A.

      apt-clean

    • B.

      apt-get clean

    • C.

      apt-get autoclean

    • D.

      apt-get autoremove

    Correct Answer
    C. apt-get autoclean
    Explanation
    The correct answer is "apt-get autoclean". The "autoclean" command in the "apt-get" package manager removes all the packages that can no longer be downloaded. This helps to free up disk space by removing unnecessary files that are no longer needed.

    Rate this question:

  • 23. 

    Qual comando do "apt" é utilizado para remover pacotes órfãos (Sem utilidade, Dependências de softwares já removidos)?

    Correct Answer
    apt-get autoremove
    Explanation
    The command "apt-get autoremove" is used to remove orphaned packages, which are packages that are no longer needed or have become obsolete due to the removal of other software dependencies. This command helps to free up disk space by removing unnecessary packages and dependencies that are no longer required by any other installed software.

    Rate this question:

  • 24. 

    Qual comando "apt-cache" com parâmetro retorna uma lista de todos os pacotes instalados?

    • A.

      apt-cache search

    • B.

      apt-cache stats

    • C.

      apt-cache dump

    • D.

      apt-cache unmet

    Correct Answer
    C. apt-cache dump
    Explanation
    The correct answer is "apt-cache dump". This command with the parameter "dump" returns a list of all installed packages. It provides detailed information about the packages installed on the system, including their names, versions, dependencies, and other relevant details. Using this command can be helpful for troubleshooting, managing packages, and analyzing the package database.

    Rate this question:

  • 25. 

    Qual comando apt-cache com parâmetro mostra informações como número de pacotes instalados e de dependências?

    • A.

      apt-cache depends

    • B.

      apt-cache stats

    • C.

      apt-cach dump

    • D.

      apt-cache pkgnames

    Correct Answer
    B. apt-cache stats
    Explanation
    The correct answer is apt-cache stats. The apt-cache stats command displays information such as the number of installed packages and dependencies.

    Rate this question:

  • 26. 

    Qual comando do "apt" verifica uma lista de dependências quebradas e tenta corrigi-las instalando pacotes nescessários?

    • A.

      apt-get -F install

    • B.

      apt-get -u install

    • C.

      apt-get -f install

    • D.

      apt-get -s install

    Correct Answer
    C. apt-get -f install
    Explanation
    The correct answer is "apt-get -f install". This command is used to check for broken dependencies and attempt to fix them by installing the necessary packages. The "-f" flag stands for "fix" and is specifically used for resolving dependency issues. By running this command, the apt package manager will analyze the system's package dependencies and automatically install any missing packages or remove unnecessary ones to ensure that all dependencies are met.

    Rate this question:

  • 27. 

    Supondo que você teria instalado o pacote nmap, agora por algum motivo deseja remove-lo, qual seria a linha de comando adequada para remover este programa utilizando o apt.

    Correct Answer
    apt-get remove nmap
    Explanation
    The correct answer is "apt-get remove nmap". This command uses the apt package manager to remove the nmap package from the system. The "remove" option is used to uninstall a package, and "nmap" is the name of the package that should be removed. This command will remove all files and configurations associated with the nmap package from the system.

    Rate this question:

  • 28. 

    Qual comando do "apt" é utilizado para atualizar todos os pacotes instalados no sistema?

    • A.

      apt-get update

    • B.

      apt-get dist-upgrade

    • C.

      apt-get -u --all

    • D.

      apt-get upgrade

    Correct Answer
    D. apt-get upgrade
    Explanation
    The correct answer is "apt-get upgrade." This command is used to update all the installed packages on the system. It upgrades the packages to their latest versions, ensuring that the system has the most up-to-date software.

    Rate this question:

  • 29. 

    Qual comando do "apt" é utilizado para realizar uma atualização de distribuição do sistema operacional? Ex: Do Debian 7 (Wheezy) para o Debian 8 (Jessie).

    Correct Answer
    apt-get dist-upgrade
    Explanation
    The "apt-get dist-upgrade" command is used to perform a distribution upgrade of the operating system. It is specifically used to upgrade from one version of the operating system to another, such as upgrading from Debian 7 (Wheezy) to Debian 8 (Jessie). This command not only upgrades the existing packages to their latest versions but also handles dependencies and resolves conflicts between packages during the upgrade process.

    Rate this question:

  • 30. 

    Qual a linha de comando completa para visualizar as dependências do pacote stella através do comando apt-cache ?

    Correct Answer
    apt-cache depends stella
    Explanation
    The given command "apt-cache depends stella" is the complete command to view the dependencies of the package "stella" using the "apt-cache" command. The "apt-cache depends" command is used to display a listing of each dependency a package has and all the packages that depend on it. In this case, it will show the dependencies of the "stella" package.

    Rate this question:

  • 31. 

    Qual comando apt-cache (Com parâmetro) irá mostrar os nomes de todos os pacotes no sistema ?

    Correct Answer
    apt-cache pkgnames
    Explanation
    The apt-cache pkgnames command is used to display the names of all packages installed on the system. This command helps in retrieving a list of package names that can be used for various purposes like package management, installation, or removal. By running this command, users can get an overview of all the available packages on their system.

    Rate this question:

  • 32. 

    Qual a linha de comando completa para exibir uma breve descrição (Registro Legivel) sobre o pacote ipcalc através do comando apt-cache?

    Correct Answer
    apt-cache show ipcalc
    Explanation
    The given command "apt-cache show ipcalc" is the complete command to display a brief description or readable record about the package "ipcalc" using the "apt-cache" command.

    Rate this question:

  • 33. 

    Qual a linha de comando completa para exibir uma descrição com informações gerais sobre o pacote ipcalc através do comando apt-cache? 

    Correct Answer
    apt-cache showpkg ipcalc
    Explanation
    The command "apt-cache showpkg ipcalc" is used to display a detailed description and general information about the package "ipcalc" using the apt-cache command.

    Rate this question:

  • 34. 

    Em qual diretório fica localizado os arquivos de repositórios do gerenciador de pacotes yum ?

    Correct Answer
    /etc/yum.repos.d
    /etc/yum.repos.d/
    Explanation
    The correct answer is "/etc/yum.repos.d" or "/etc/yum.repos.d/". These directories are where the repository files for the yum package manager are located. Yum uses these files to determine where to download software packages from and how to install them.

    Rate this question:

  • 35. 

    Qual o comando completo do yum para instalar o pacote nmap?

    Correct Answer
    yum install nmap
    Explanation
    The given correct answer is "yum install nmap". This is because the question asks for the complete command to install the package "nmap" using the yum package manager. The "yum install" command is used to install packages, and "nmap" is the specific package being installed in this case.

    Rate this question:

  • 36. 

    Quais comandos "yum" abaixo podem ser utilizados para remover o programa nmap?

    • A.

      yum remove nmap

    • B.

      yum clean nmap

    • C.

      yum erase nmap

    • D.

      yum delete nmap

    Correct Answer(s)
    A. yum remove nmap
    C. yum erase nmap
    Explanation
    The correct answer is "yum remove nmap" and "yum erase nmap". These commands are used in the yum package manager to remove or erase the program "nmap" from the system. The commands "yum clean nmap" and "yum delete nmap" are not valid commands to remove a specific program using yum.

    Rate this question:

  • 37. 

    Qual dos comandos "yum" abaixo pode ser utilizado para pesquisar por pacotes?

    • A.

      yum --search

    • B.

      yum search

    • C.

      yum check

    • D.

      yum deplist

    Correct Answer
    B. yum search
    Explanation
    The command "yum search" can be used to search for packages.

    Rate this question:

  • 38. 

    Qual dos comandos "yum" abaixo irá listar todos os pacotes instalados e disponíveis?

    • A.

      yum repolist

    • B.

      yum check-list

    • C.

      yum list

    • D.

      yum check

    Correct Answer
    C. yum list
    Explanation
    The correct answer is "yum list" because this command is used to list all the packages that are installed and available in the system. The "yum repolist" command lists the repositories, "yum check-list" and "yum check" commands are not valid commands in the yum package manager.

    Rate this question:

  • 39. 

    Qual dos comandos abaixo irá procurar por problemas no rpmdb ?

    • A.

      yum check-list

    • B.

      yum check

    • C.

      yum check-db

    • D.

      yum check-rpmdb

    Correct Answer
    B. yum check
    Explanation
    The command "yum check" is used to search for problems in the rpmdb (RPM database). It checks the installed packages against the repositories and verifies the integrity and consistency of the packages in the database. This command is specifically designed to identify any issues or discrepancies within the rpmdb and provide a report on potential problems.

    Rate this question:

  • 40. 

    Qual dos comandos "yum" abaixo verifica por atualizações de pacotes disponíveis ?

    • A.

      yum check

    • B.

      yum update-check

    • C.

      yum repolist

    • D.

      yum check-update

    Correct Answer
    D. yum check-update
    Explanation
    The correct answer is "yum check-update". This command is used to check for updates of available packages in the system. It will display a list of packages that have available updates, allowing the user to see which packages can be updated.

    Rate this question:

  • 41. 

    Qual comando do "yum" que remove todos os dados do cache ?

    Correct Answer
    yum clean all
    Explanation
    The command "yum clean all" is used to remove all the data from the cache in the yum package manager. The cache stores downloaded package files and metadata, which can take up disk space. By using this command, all the cached data is deleted, freeing up disk space and ensuring that the package manager retrieves the latest versions of packages from the repositories.

    Rate this question:

  • 42. 

    Qual comando "yum" irá retornar uma lista de dependências de um pacote específico ?

    • A.

      yum --dependencies

    • B.

      yum listdep

    • C.

      yum deplist

    • D.

      yum --list-dep

    Correct Answer
    C. yum deplist
    Explanation
    The "yum deplist" command will return a list of dependencies for a specific package.

    Rate this question:

  • 43. 

    Qual comando dpkg você utiliza para configurar um pacote ?

    Correct Answer
    dpkg --configure
    Explanation
    The command "dpkg --configure" is used to configure a package in the dpkg package management system. This command is used to reconfigure a package that has been partially installed or has configuration files that need to be updated. It allows the user to specify the package name or use the command with no arguments to configure all the packages that are currently installed on the system.

    Rate this question:

  • 44. 

    Qual dos comandos rpm abaixo retorna informações como o nome, versão, arquitetura etc... sobre o programa tree, já instalado?

    • A.

      rpm -qp tree

    • B.

      rpm -qi tree

    • C.

      rpm -qv tree

    • D.

      rpm -va tree

    Correct Answer
    B. rpm -qi tree
    Explanation
    The command "rpm -qi tree" is used to return information about a specific package that is already installed. In this case, it will return information such as the name, version, architecture, etc. about the program "tree" that is already installed on the system.

    Rate this question:

  • 45. 

    Qual parâmetro do comando rpm irá imprimir a string "#" como barra de progresso durante a instalação de um pacote rpm?

    • A.

      rpm -iv

    • B.

      rpm -ih

    • C.

      rpm -Uv

    • D.

      rpm -qa

    Correct Answer
    B. rpm -ih
    Explanation
    The parameter "-ih" in the rpm command will print the string "#" as a progress bar during the installation of an rpm package.

    Rate this question:

  • 46. 

    Qual comando rpm com parâmetro irá instalar um pacote sem verificar suas dependências ?

    • A.

      rpm -Uvh

    • B.

      rpm --install -vh

    • C.

      rpm -i --nodeps

    • D.

      rpm -ivh

    Correct Answer
    C. rpm -i --nodeps
    Explanation
    The correct answer is "rpm -i --nodeps". This command will install a package without checking its dependencies. The "-i" flag is used to install the package, and the "--nodeps" flag is used to skip dependency checks.

    Rate this question:

  • 47. 

    Qual comando rpm com parâmtro irá retornar quem instalou determinado pacote ?

    Correct Answer
    rpm -qf
    Explanation
    The command "rpm -qf" is used to query the RPM database and determine which package a particular file belongs to. By providing the file name or path as an argument, the command will return the package name that installed that file. This command is useful for troubleshooting and verifying package installations on a Linux system.

    Rate this question:

  • 48. 

    Qual comando rpm irá mostrar como seria a instalação de um determinado pacote sem instalar o mesmo ?

    Correct Answer
    rpm -i --test
    Explanation
    The command "rpm -i --test" is used to simulate the installation of a specific package without actually installing it. It allows users to see the output and potential errors that would occur during the installation process without making any changes to the system. This can be useful for testing purposes or to verify if a package can be installed successfully before actually proceeding with the installation.

    Rate this question:

  • 49. 

    Qual dos comandos rpm abaixo pode ser utilizado para mostrar todos os arquivos e diretórios do pacote tree ?

    • A.

      rpm -qi tree

    • B.

      rpm -qp tree

    • C.

      rpm -qv tree

    • D.

      rpm -ql tree

    Correct Answer
    D. rpm -ql tree
    Explanation
    The command "rpm -ql tree" can be used to show all the files and directories included in the package "tree". The "-q" option stands for "query" and is used to display information about a package, while the "-l" option stands for "list" and is used to list all the files and directories in a package. Therefore, the command "rpm -ql tree" will provide a list of all the files and directories included in the "tree" package.

    Rate this question:

  • 50. 

    Qual dos comandos rpm abaixo indica que a investigação é realizada em arquivo.rpm ?

    • A.

      rpm -qp

    • B.

      rpm -qa

    • C.

      rpm -qi

    • D.

      rpm -ql

    Correct Answer
    A. rpm -qp
    Explanation
    The correct answer is "rpm -qp" because the "-qp" option is used to query a specific package file, in this case "arquivo.rpm". This command allows the user to investigate the contents and information of the specified RPM file.

    Rate this question:

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Mar 22, 2023
    Quiz Edited by
    ProProfs Editorial Team
  • Apr 05, 2016
    Quiz Created by
    Viniciusalcantar
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.