index Previous Next



Yum after downlaod and installation of packages delete these packages from it's cahce /var/cache/yum
, to tell yum not to delete these packages open the /etc/yum.conf and chang the keepcache=0
to the keepcache=1 , or use the yumdownloader to download a rpm package
with it's dependencies for later installation in the other dir:
yumdownloader --resolve
With local yum repo it is easy to insall the local fedora rpm packages with it's dependencies.
Make repo directories for example in /opt with:
mkdir -p fedora/os/i386
Copy the fedora local rpm packages to the fedora/os/i386, open the fedora/os and run the command:
mkdir -p fedora/updates/i386
createrepo i386/
This well create the repodata directory with needed header files.
Then copy the fedora update rpm packages to the fedora/updates/i386, open the fedora/updates and run the commmand:
createrepo i386/
Add these repos to the /etc/yum.repos.d , creat two files fedora.repo and updates.repo as follows:
fedora.repo:
[fedora]
name=Fedora - $basearch
baseurl=file:///opt/fedora/os/$basearch
enabled=1
updates.repo:
[updates]
To install any package from the local yum repo, run the yum:
name=Updates - $basearch
baseurl=baseurl=file:///opt/fedora/updates/$basearch
enabled=1
yum install package_name
