Product SiteDocumentation Site

6.11. yum-plugin-local

When this extension is installed and enabled, it will automatically copy all installed packages to a repository on the local file system and rebuild the repository. This means that any package that you downloaded and installed with yum yum will always exist, even if it is removed from the original repository, therefore, it can be uninstalled, reinstalled, downgraded, etc.

6.11.1. Configuration

The provided configuration files are:
  • /etc/yum.repos.d/_local.repo
  • /etc/yum/pluginconf.d/local.conf

# Createreop options. See man createrepo
# If you want to speedup createrepo with the --cachedir option. Eg.
# cachedir = /tmp/createrepo-local-plugin-cachedir
# If you need to override the checksum with the --checksum option. Eg.
# checksum = sha

quiet = true
verbose = false
skip_stat = false
unique_md_filenames = true
update = true
databases = true
enabled = 0|1
Enable extension at a general level.
quiet = true|false
verbose = true|false
Report many details.
skip_stat = true|false
Avoid file/directory verification with stat.
unique_md_filenames = true|false
Adds file checksum in metadata file name.
update = true|false
If metadata exists in the directory and the rpm has not changed since metadata was created, it will reuse these metadata when set to true instead of recreate them.
databases = true|false
It creates the sqlite yum database.
When this extension is enabled, this file is automatically created when you install a new package. Once created, it can be customized if necessary.
name=Automatic local repo. (managed by the "local" yum plugin).
#  Metadata expire could be set to "never" because the local plugin will
# automatically cause a cache refresh when new packages are added. However
# it's really cheap to check, and this way people can dump stuff in whenever
# and it never gets out of sync. for long.
#  Make cost smaller, as we know it's "local". If you really want to be sure,
# you can do this ... but the name will do pretty much the same thing, and that
# way we can also see the other packages (with: --showduplicates list).
# cost=500