102.5 Flashcards
Which command is used to install an RPM package in Linux?
a) rpm -i
b) yum install
c) rpm –install
d) dnf install
a) rpm -i
How do you remove an installed RPM package?
a) yum erase
b) rpm -e
c) rpm –uninstall
d) dnf remove
b) rpm -e
What command can be used to verify the integrity of an RPM package?
a) rpm –checksig
b) yum verify
c) rpm -V
d) dnf check
c) rpm -V
Which option is used with ‘yum’ to update all packages?
a) yum update
b) yum upgrade
c) yum refresh
d) yum renew
a) yum update
How do you check if a specific package is installed using ‘yum’?
a) yum list installed <package_name>
b) yum check <package_name>
c) rpm -q <package_name>
d) dnf check <package_name></package_name></package_name></package_name></package_name>
a) yum list installed <package_name></package_name>
Which command would you use to display information about a specific package in RPM?
a) rpm -qpi
b) yum info
c) rpm -ql
d) yum package-info
a) rpm -qpi
What does ‘yum clean all’ do?
a) Removes cached packages and metadata
b) Removes only old metadata
c) Rebuilds the cache
d) Updates all repositories
a) Removes cached packages and metadata
Which command in ‘yum’ shows packages from enabled repositories?
a) yum list available
b) yum repo-list
c) yum show available
d) rpm -q
a) yum list available
How do you add a repository to ‘yum’?
a) yum-config-manager –add-repo
b) rpm –add-repo
c) yum add-repo
d) dnf add-repo
a) yum-config-manager –add-repo
What command removes an RPM package and all its dependencies?
a) yum autoremove <package_name>
b) rpm -e --nodeps <package_name>
c) dnf autoremove <package_name>
d) rpm -qa</package_name></package_name></package_name>
a) yum autoremove <package_name></package_name>
How do you view detailed package information with ‘rpm’?
a) rpm -qi <package_name>
b) rpm -ql <package_name>
c) rpm -qf <package_name>
d) rpm -qd <package_name></package_name></package_name></package_name></package_name>
a) rpm -qi <package_name></package_name>
Which command lists all installed packages in ‘yum’?
a) yum list installed
b) rpm -qa
c) yum list all
d) yum query
a) yum list installed
What does ‘yum grouplist’ do?
a) Lists all available package groups
b) Lists all repositories
c) Shows detailed package info
d) Cleans package cache
a) Lists all available package groups
Which command checks for package updates using ‘yum’?
a) yum check-update
b) rpm –check-update
c) yum list updates
d) dnf check-update
a) yum check-update
How do you install a specific version of a package with ‘yum’?
a) yum install <package_name>-<version>
b) yum version-install <package_name>
c) yum install --version <package_name>
d) rpm -U <package_name></package_name></package_name></package_name></version></package_name>
a) yum install <package_name>-<version></version></package_name>