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

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Viniciusalcantar
V
Viniciusalcantar
Community Contributor
Quizzes Created: 11 | Total Attempts: 7,455
| Attempts: 768
SettingsSettings
Please wait...
  • 1/100 Questões

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

Please wait...
LPI 101 - Instalacao E Gerenciamento De Pacotes 1- Marcus Vinicius Braga Alcantara - Quiz


Quiz Preview

  • 2. 

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

    • /etc/dpkg/dpkg.cfg

    • /etc/apt.conf

    • /etc/apt/sources.list

    • /etc/deb.conf

    Correct Answer
    A. /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:

  • 3. 

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

    • yum --search

    • yum search

    • yum check

    • yum deplist

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

    Rate this question:

  • 4. 

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

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

    • aptitude sudo_1.7.4p4-5_i386.deb

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

    • 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:

  • 5. 

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

    • apt-get check

    • aptitude update

    • aptitude full-upgrade

    • apt-get upgrade

    Correct Answer
    A. 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:

  • 6. 

    Você deseja instalar um novo pacote de software, mas é apenas disponível no formato RPM, sendo que você está utilizando o Debian Linux. Qual dos seguintes iria ajudá-lo para instalação de um pacote RPM em seu sistema Debian?

    • alien

    • cpio

    • dselect

    • apt-conf

    Correct Answer
    A. alien
    Explanation
    Alien é a resposta correta porque é uma ferramenta que permite a conversão de pacotes entre diferentes formatos, incluindo RPM para DEB. Portanto, ao utilizar o Alien, você poderá converter o pacote RPM para um formato compatível com o Debian Linux e assim conseguir instalá-lo em seu sistema.

    Rate this question:

  • 7. 

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

    • dpkg -r --force

    • aptitude remove

    • apt-get remove --purge

    • dpkg -r

    Correct Answer
    A. 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:

  • 8. 

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

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

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

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

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

    Correct Answer
    A. 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:

  • 9. 

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

    • rpm --fscontext

    • rpm --allfiles

    • rpm -qa

    • rpm --list

    Correct Answer
    A. 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:

  • 10. 

    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 ?

    • rpm -qiv gthumb-2.2.0.i386.rpm

    • rpm -qu gthumb-2.2.0.i386.rpm

    • rpm -i gthumb-2.2.0.i386.rpm

    • rpm -U gthumb-2.2.0.i3S6.rpm

    • rpm -ivh gthumb-2.2.0.i386.rpm

    Correct Answer
    A. 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:

  • 11. 

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

    • apt-get update

    • apt-get dist-upgrade

    • apt-get -u --all

    • apt-get upgrade

    Correct Answer
    A. 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:

  • 12. 

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

    • yum update

    • yum --update

    • yum check-update

    • 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:

  • 13. 

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

    • rpm -Uvh

    • rpm --install -vh

    • rpm -i --nodeps

    • rpm -ivh

    Correct Answer
    A. 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:

  • 14. 

    O que irá acontecer quando o seguinte comando for executado "rpm -Uvh file" ?

    • O pacote instalado será atualizado com o pacote file, mostrando a saída detalhada.

    • O arquivo rpm será verificado.

    • O pacote instalado ou atualizado com o pacote file, dando sinais de saída e hash detalhado para mostrar o progresso de instalação do pacote.

    • Ocorrerá um erro.

    Correct Answer
    A. O pacote instalado ou atualizado com o pacote file, dando sinais de saída e hash detalhado para mostrar o progresso de instalação do pacote.
    Explanation
    When the command "rpm -Uvh file" is executed, the installed package will be updated or upgraded with the package file. The command will give output signals and a detailed hash to show the progress of the package installation.

    Rate this question:

  • 15. 

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

    • /var/packages/rpm

    • /var/yum

    • /var/cache/yum

    • /var/lib/rpm

    Correct Answer
    A. /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:

  • 16. 

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

    Correct Answer
    /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:

  • 17. 

    Quais comandos abaixo permite gerenciar pacotes .deb ? (Selecione 2 respostas).

    • dpkg

    • deb

    • dselect

    • debselect

    Correct Answer(s)
    A. dpkg
    A. dselect
    Explanation
    The correct answers for managing .deb packages are dpkg and dselect. dpkg is a package manager used for installing, removing, and managing individual .deb packages. dselect is a higher-level package manager that provides a more user-friendly interface for managing packages, including the ability to select and install multiple packages at once.

    Rate this question:

  • 18. 

    Qual o comando que pode ser utilizado para converter pacotes ".deb" ".rpm" e "tgz" ? (Especifique somente o comando) ?

    Correct Answer(s)
    alien
    Explanation
    The correct answer is "alien." The "alien" command can be used to convert packages between different formats such as ".deb," ".rpm," and "tgz." It is a powerful tool that allows for easy package conversion and installation on different Linux distributions.

    Rate this question:

  • 19. 

    Qual comando aptitude irá procurar pelo pacote chamado nmap?

    Correct Answer(s)
    aptitude search nmap
    Explanation
    The command "aptitude search nmap" will search for the package called "nmap" using the aptitude package manager.

    Rate this question:

  • 20. 

    Qual das opções abaixo do apt-cache irá mostrar a informação de dependências inversas de um pacote?

    • depends

    • dumpavail

    • show

    • rdepends

    • dotty

    Correct Answer
    A. rdepends
    Explanation
    The option "rdepends" in apt-cache will display the reverse dependencies of a package. This means it will show which other packages depend on the specified package.

    Rate this question:

  • 21. 

    Qual o comando aptitude (Completo) irá baixar, mas não instalar o arquivo.deb do pacote/programa nmap?

    Correct Answer
    aptitude download nmap
    aptitude install -d nmap
    Explanation
    The correct answer is "aptitude download nmap" and "aptitude install -d nmap". These commands will download the .deb file of the nmap package/program but will not install it. The "aptitude download nmap" command specifically downloads the .deb file, while the "aptitude install -d nmap" command downloads the .deb file and keeps it in the cache without installing it.

    Rate this question:

  • 22. 

    Qual dos comandos "apt" abaixo pode ser utilizado para atualizar o programa nmap ?

    • apt-get update nmap

    • apt-get upgrade nmap

    • apt-get -u nmap

    • apt-get -U nmap

    Correct Answer
    A. apt-get upgrade nmap
    Explanation
    The correct answer is "apt-get upgrade nmap". This command is used to upgrade the specified program, in this case, nmap. The "apt-get" command is a package management tool in Linux-based systems that allows users to install, upgrade, or remove software packages. The "upgrade" option ensures that the latest version of the package is installed.

    Rate this question:

  • 23. 

    O que é verdade, sobre usar ambos os sistemas de gerenciamento de pacotes Debian e RPM em um mesmo SO ?

    • Em geral, é desaconselhável porque os dois sistemas não compartilham o arquivo de banco de dados instalado em formação.

    • É impossível porque o seus arquivos de bancos de dados irá conflitar um com o outro.

    • Ele não causa problemas se você instalar bibliotecas importantes uma vez em cada formato.

    • É uma prática comum em sistemas Red Hat e Debian.

    Correct Answer
    A. Em geral, é desaconselhável porque os dois sistemas não compartilham o arquivo de banco de dados instalado em formação.
    Explanation
    Using both Debian and RPM package management systems on the same operating system is generally discouraged because these two systems do not share the installed database file. This can lead to conflicts and inconsistencies in managing packages and dependencies. It is recommended to stick to one package management system to avoid potential issues.

    Rate this question:

  • 24. 

    Qual o utilitário derivado do "rpm" pode ser utilizado para converter um pacote rpm em cpio ? (Especifique somente o comando).

    Correct Answer
    rpm2cpio
    Explanation
    The utility "rpm2cpio" is used to convert an rpm package into cpio format. This utility allows users to extract the contents of an rpm package and convert them into a cpio archive, which can then be further manipulated or extracted using other tools.

    Rate this question:

  • 25. 

    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 ?

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

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

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

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

    Correct Answer
    A. 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:

  • 26. 

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

    • rpm -iv

    • rpm -ih

    • rpm -Uv

    • rpm -qa

    Correct Answer
    A. 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:

  • 27. 

    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:

  • 28. 

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

    • yum remove nmap

    • yum clean nmap

    • yum erase nmap

    • yum delete nmap

    Correct Answer(s)
    A. yum remove nmap
    A. 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:

  • 29. 

    Qual comando apt-cache irá mostrar as dependências não satisfeitas para o pacote/programa python?

    Correct Answer(s)
    apt-cache unmet python
    Explanation
    The command "apt-cache unmet python" will display the unsatisfied dependencies for the python package/program.

    Rate this question:

  • 30. 

    Você instalou uma nova aplicação, mas ao digitar o comando do programa você recebe a mensagem "Command not found". O que fazer para resolver isto?

    • Adicionar o diretório da aplicação na variável path.

    • Especificar o nome do diretório ao rodar a aplicação.

    • Verificar a permissão de execução do aplicativo.

    • Dar permissão de leitura, escrita e execução para todos os usuários para a aplicação.

    Correct Answer
    A. Adicionar o diretório da aplicação na variável path.
    Explanation
    To resolve the issue of receiving the "Command not found" message when typing the program command, you need to add the application directory to the path variable. This allows the system to locate and execute the program when its command is entered.

    Rate this question:

  • 31. 

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

    • apt-clean

    • apt-get clean

    • apt-get autoclean

    • apt-get autoremove

    Correct Answer
    A. 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:

  • 32. 

    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:

  • 33. 

    Quais gerenciadores de pacotes fornecem menus interativos para com o usuário? (Selecione 2 respostas).

    • yum

    • apt-get

    • dselect

    • rpm

    • aptitude

    • dpkg

    Correct Answer(s)
    A. dselect
    A. aptitude
    Explanation
    Dselect and aptitude are two package managers that provide interactive menus for the user. These menus allow the user to easily navigate and select packages to install or remove from their system. Yum, apt-get, rpm, and dpkg are also package managers, but they do not provide interactive menus.

    Rate this question:

  • 34. 

    Qual das opções a seguir é o arquivo de texto que contém diretórios onde o dynamic linker deverá procurar por bibliotecas?

    • ld.so.conf

    • conf.ld.so

    • ld.so.cache

    • so.config

    • Configld

    Correct Answer
    A. ld.so.conf
    Explanation
    The correct answer is "ld.so.conf". This file contains directories where the dynamic linker should look for libraries.

    Rate this question:

  • 35. 

    O que acontece quando o comando ldconfig é executado?

    • O arquivo de índice binário das bibliotecas locais é reconstruído.

    • O arquivo de índice de texto das bibliotecas locais é reconstruído.

    • O disco é escaneado para encontrar bibliotecas para incluír no índice.

    • N.D.A

    Correct Answer
    A. O arquivo de índice binário das bibliotecas locais é reconstruído.
    Explanation
    When the ldconfig command is executed, the binary index file of the local libraries is rebuilt.

    Rate this question:

  • 36. 

    Escolha qual dos comandos é usado para remover o pacote 'simulado' e seus arquivos de configuração.

    • dpkg --exclude-all simulado

    • dpkg --remove simulado

    • dpkg -r simulado

    • dpkg -P simulado

    Correct Answer
    A. dpkg -P simulado
    Explanation
    The correct answer is dpkg -P simulado. This command is used to remove the package 'simulado' and its configuration files from the system.

    Rate this question:

  • 37. 

    Qual comando aptitude (completo) irá mostrar o log de mudanças do pacote/programa chamado nmap?

    Correct Answer
    aptitude changelog nmap
    Explanation
    The correct answer is "aptitude changelog nmap". This command is used to display the log of changes for the package or program called nmap. The "changelog" option is used to specifically retrieve the changelog information for the specified package. By running this command, the user can view the history of changes made to the nmap package, including any updates, bug fixes, or new features that have been implemented.

    Rate this question:

  • 38. 

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

    • yum repolist

    • yum check-list

    • yum list

    • yum check

    Correct Answer
    A. 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. 

    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?

    • rpm -Qavy > report

    • rpm -Va > report

    • rpm -Vqt --nomd5 > report

    • rpm -Va --nofiles > report

    • rpm --checkfiles > report

    Correct Answer
    A. 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:

  • 40. 

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

    • rpm -i nome_do_pacote

    • rpm -F nome_do_pacote

    • rpm -e nome_do_pacote

    • rpm -u nome_do_pacote

    Correct Answer
    A. 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:

  • 41. 

    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:

  • 42. 

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

    • dpkg -L

    • dpkg - s

    • dpkg -l

    • 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:

  • 43. 

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

    • rpm -qp

    • rpm -qa

    • rpm -qi

    • 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:

  • 44. 

    Qual comando apt-get "completo" pode ser utilizado para obter o changelog do programa/pacote tree?

    Correct Answer
    apt-get changelog tree
    Explanation
    The command "apt-get changelog tree" can be used to obtain the changelog of the program/package called "tree".

    Rate this question:

  • 45. 

    Você instalou há pouco um novo programa manualmente. Este programa usa bibliotecas compartilhadas que foram instaladas em /usr/local/prog/lib. O que é necessário fazer depois da instalação, de forma que as bibliotecas possam ser usadas?

    • Reiniciar o computador

    • Executar o ldconfig

    • Editar /etc/ld.so.conf para adicionar o diretório e executar ldconfig

    • Editar /etc/ld.so.conf para adicionar o diretório e executar ld.so

    • Criar um link simbólico entre o diretório da biblioteca para /usr/lib

    Correct Answer
    A. Editar /etc/ld.so.conf para adicionar o diretório e executar ldconfig
    Explanation
    After manually installing a new program that uses shared libraries installed in /usr/local/prog/lib, it is necessary to edit the /etc/ld.so.conf file to add the directory where the libraries are located. After making this edit, the ldconfig command needs to be executed. This will update the system's cache of shared library locations, allowing the newly installed libraries to be used by other programs.

    Rate this question:

  • 46. 

    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:

  • 47. 

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

    • apt-get -F install

    • apt-get -u install

    • apt-get -f install

    • apt-get -s install

    Correct Answer
    A. 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:

  • 48. 

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

    • yum check

    • yum update-check

    • yum repolist

    • yum check-update

    Correct Answer
    A. 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:

  • 49. 

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

    • rpm -qi tree

    • rpm -qp tree

    • rpm -qv tree

    • rpm -ql tree

    Correct Answer
    A. 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:

Quiz Review Timeline (Updated): Mar 22, 2023 +

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.