yum Flashcards
yum
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]
yum install
yum -y install
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.
yum remove
remove, Is used to remove the specified packages from the system as well as removing any packages which depend on the package.
yum update
update, If run without any packages, update will update every currently installed package.
yum list
list, Is used to list various information about available packages.
yum search
search, This is used to find packages when you know something about the package but aren’t sure of its name.
yum info
info, Is used to list a description and summary information about available packages.
yum list all
yum list installed
yum list updates
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.
yum provides
provides, Is used to find out which package provides some feature or file.
yum check-update
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
yum grouplist
yum groupinstall
yum groupupdate
yum groupremove
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.
yum repolist
yum repolist all
repolist, Produces a list of configured repositories. The default lists all enable repos.
repolist all, Lists all repositories whether enabled or disabled.
yum –enablerepo=
–enablerepo=repoidglob, Enables specific repositories by id or glob that have been diabled in the configuration file.
yum shell
shell, Is used to enter the ‘yum shell’, when a filename is specified the contents of that file is executed in yum shell mode.
yum clean all
clean, Is used to clean up various things which accumulate in the yum cache directory over time.