102.5 Flashcards

1
Q

Which command is used to install an RPM package in Linux?
a) rpm -i
b) yum install
c) rpm –install
d) dnf install

A

a) rpm -i

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

How do you remove an installed RPM package?
a) yum erase
b) rpm -e
c) rpm –uninstall
d) dnf remove

A

b) rpm -e

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

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

A

c) rpm -V

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

Which option is used with ‘yum’ to update all packages?
a) yum update
b) yum upgrade
c) yum refresh
d) yum renew

A

a) yum update

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

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

a) yum list installed <package_name></package_name>

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

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

a) rpm -qpi

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

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

a) Removes cached packages and metadata

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

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

a) yum list available

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

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

a) yum-config-manager –add-repo

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

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

a) yum autoremove <package_name></package_name>

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

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

a) rpm -qi <package_name></package_name>

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

Which command lists all installed packages in ‘yum’?
a) yum list installed
b) rpm -qa
c) yum list all
d) yum query

A

a) yum list installed

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

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

a) Lists all available package groups

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

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

a) yum check-update

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

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

a) yum install <package_name>-<version></version></package_name>

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

Which command removes cached files using ‘yum’?
a) yum clean all
b) yum autoremove
c) yum delete cache
d) dnf clean cache

A

a) yum clean all

17
Q

What does ‘rpm -U’ do?
a) Installs or upgrades a package
b) Uninstalls a package
c) Queries a package
d) Reinstalls a package

A

a) Installs or upgrades a package

18
Q

Which command lists the files in an installed RPM package?
a) rpm -ql
b) rpm -qf
c) rpm -qi
d) yum list-files

A

a) rpm -ql

19
Q

What does the ‘yum repolist’ command do?
a) Lists enabled repositories
b) Lists installed packages
c) Cleans repositories
d) Verifies repository configuration

A

a) Lists enabled repositories

20
Q

How do you reinstall a package using ‘yum’?
a) yum reinstall <package_name>
b) rpm -reinstall <package_name>
c) yum reinstall-all <package_name>
d) yum install --reinstall</package_name></package_name></package_name>

A

a) yum reinstall <package_name></package_name>

21
Q

How do you check the dependencies of an RPM package?
a) rpm -qR <package_name>
b) yum check <package_name>
c) rpm --deps <package_name>
d) dnf check-deps</package_name></package_name></package_name>

A

a) rpm -qR <package_name></package_name>

22
Q

Which option in ‘yum’ updates all outdated packages?
a) yum update
b) yum upgrade-all
c) yum upgrade
d) yum refresh

A

a) yum update

23
Q

How do you install a group of packages with ‘yum’?
a) yum groupinstall <group_name>
b) yum install --group <group_name>
c) yum add-group <group_name>
d) dnf install --group</group_name></group_name></group_name>

A

a) yum groupinstall <group_name></group_name>

24
Q

What does ‘rpm -ivh’ do?
a) Installs an RPM package with progress and hash marks
b) Uninstalls an RPM package
c) Verifies an RPM package
d) Updates an RPM package

A

a) Installs an RPM package with progress and hash marks

25
Q

How do you remove a repository from ‘yum’?
a) yum-config-manager –remove-repo
b) rpm –remove-repo
c) yum remove-repo
d) dnf remove-repo

A

a) yum-config-manager –remove-repo

26
Q

Which command verifies an installed RPM package?
a) rpm -V
b) rpm –checksig
c) yum verify
d) dnf verify

A

a) rpm -V

27
Q

How do you exclude a package from being updated with ‘yum’?
a) yum update –exclude <package_name>
b) yum exclude <package_name>
c) yum prevent-update <package_name>
d) dnf lock <package_name></package_name></package_name></package_name></package_name>

A

a) yum update –exclude <package_name></package_name>

28
Q

What does ‘rpm -qa’ do?
a) Lists all installed RPM packages
b) Installs a package
c) Removes a package
d) Queries a package’s dependencies

A

a) Lists all installed RPM packages

29
Q

Which command shows the current ‘yum’ version?
a) yum –version
b) rpm -V
c) yum info –version
d) dnf –version

A

a) yum –version

30
Q

How do you check if a repository is enabled with ‘yum’?
a) yum repolist enabled
b) yum list repos
c) yum repo-list
d) yum check-repos

A

a) yum repolist enabled