yum Flashcards

1
Q

yum

A

yum - Yellowdog Updater Modified Synopsis yum [options] [command] [package …] Description yum is an interactive, rpm based, package manager. It can automatically perform system updates, including dependency analysis and obsolete processing based on “repository” metadata. It can also perform installation of new packages, removal of old packages and perform queries on the installed and/or available packages among many other commands/services (see below). yum is similar to other high level package managers like apt-get and smart. While there are some graphical interfaces directly to the yum code, more recent graphical interface development is happening with PackageKit and the gnome-packagekit application. command is one of: * install package1 [package2] […] * update [package1] [package2] […] * update-to [package1] [package2] […] * check-update * upgrade [package1] [package2] […] * upgrade-to [package1] [package2] […] * distribution-synchronization [package1] [package2] […] * remove | erase package1 [package2] […] * list […] * info […] * provides | whatprovides feature1 [feature2] […] * clean [packages | metadata | expire-cache | rpmdb | plugins | all] * makecache * groupinstall group1 [group2] […] * groupupdate group1 [group2] […] * grouplist [hidden] [groupwildcard] […] * groupremove group1 [group2] […] * groupinfo group1 […] * search string1 [string2] […] * shell [filename] * resolvedep dep1 [dep2] […] * localinstall rpmfile1 [rpmfile2] […] (maintained for legacy reasons only - use install) * localupdate rpmfile1 [rpmfile2] […] (maintained for legacy reasons only - use update) * reinstall package1 [package2] […] * downgrade package1 [package2] […] * deplist package1 [package2] […] * repolist [all|enabled|disabled] * version [all | installed | available | group-* | nogroups* | grouplist | groupinfo] * history [info|list|packages-list|packages-info|summary|addon-info|redo|undo|rollback|new|sync|stats] * load-transaction [txfile] * check * help [command]

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

yum install

yum -y install

A

install, Install is used to install the latest version of a package or group of packages while ensuring all the dependencies are satisfied.

-y, –assumeyes, Assumes yes to any questions that would be asked.

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

yum remove

A

remove, Is used to remove the specified packages from the system as well as removing any packages which depend on the package.

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

yum update

A

update, If run without any packages, update will update every currently installed package.

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

yum list

A

list, Is used to list various information about available packages.

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

yum search

A

search, This is used to find packages when you know something about the package but aren’t sure of its name.

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

yum info

A

info, Is used to list a description and summary information about available packages.

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

yum list all

yum list installed

yum list updates

A

list all, Lists all available and installed packages.

list installed, Lists installed packages.

list updates, Lists all packages with updates available in the yum repositories.

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

yum provides

A

provides, Is used to find out which package provides some feature or file.

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

yum check-update

A

check-update, Implement to know if there are any updates that can be applied.

Exit codes:

100 = There are packages to update

0 = There are no packages to update

1 = An error occured

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

yum grouplist

yum groupinstall

yum groupupdate

yum groupremove

A

grouplist, Is used to list the available groups from all yum repos.

groupinstall, Is used to install all of the individual packages in a group.

groupupdate, Is used to install or update a group to the newest version.

groupremove, Is used to remove all of the packages in a group.

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

yum repolist

yum repolist all

A

repolist, Produces a list of configured repositories. The default lists all enable repos.

repolist all, Lists all repositories whether enabled or disabled.

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

yum –enablerepo=

A

–enablerepo=repoidglob, Enables specific repositories by id or glob that have been diabled in the configuration file.

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

yum shell

A

shell, Is used to enter the ‘yum shell’, when a filename is specified the contents of that file is executed in yum shell mode.

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

yum clean all

A

clean, Is used to clean up various things which accumulate in the yum cache directory over time.

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

yum history

A

history, The history command allows the user to view what has happened in past transactions.