Apr 23

Yum (Redhat 7/Centos 7)

Yum and RPM relationship

RPM install packages, but does not care about required dependencies and that’s when Yum becomes handy. Yum is a front end for RPM, it will download and install package and all necessary dependencies for application to run correctly.

Yum related directories and files:

Yum config:

Contains containing repo locator files:

Yum logs:

List of Commands:

yum check – Check for problems in the rpmdb
yum check-update – Check for available package updates
yum clean – Remove cached data
yum deplist – List a package’s dependencies
yum distribution-synchronization – Synchronize installed packages to the latest available versions
yum downgrade – downgrade a package
yum erase – Remove a package or packages from your system
yum fs – Acts on the filesystem data of the host, mainly for removing docs/lanuages for minimal hosts
yum fssnapshot – Creates filesystem snapshots, or lists/deletes current snapshots.
yum groups – Display, or use, the groups information
yum help – Display a helpful usage message
yum history – Display, or use, the transaction history
yum info – Display details about a package or group of packages
yum install – Install a package or packages on your system
yum list – List a package or groups of packages
yum load-transaction – load a saved transaction from filename
yum makecache – Generate the metadata cache
yum provides – Find what package provides the given value
yum reinstall – reinstall a package
yum repo-pkgs – Treat a repo. as a group of packages, so we can install/remove all of them
yum repolist – Display the configured software repositories
yum search – Search package details for the given string
yum shell – Run an interactive yum shell
yum swap – Simple way to swap packages, instead of using shell
yum update – Update a package or packages on your system
yum update-minimal – Works like upgrade, but goes to the ‘newest’ package match which fixes a problem that affects your system
yum updateinfo – Acts on repository update information
yum upgrade – Update packages taking obsoletes into account
yum version – Display a version for the machine and/or available repos.

yum group command options:

yum group list
yum group info
yum group install
yum group summary
yum group remove

Follow me!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>