Some Linux Tips




LINKS

Some Debian Tips
awardspace.com "free webhost"
drivehq.com "free storage"
spideroak.com "free storage"
dnsexit dynamic dns server
freedns.afraid dynamic dns server
dns.he.net dynamic dns server




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
  mkdir -p fedora/updates/i386

Copy the fedora local rpm packages to the fedora/os/i386, open the fedora/os and run the command:

  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]
  name=Updates - $basearch
  baseurl=baseurl=file:///opt/fedora/updates/$basearch
  enabled=1

To install any package from the local yum repo, run the yum:

yum install package_name