PDA

View Full Version : yumex and localinstall



mpajoh
14th September 2006, 08:05 PM
Is there a way to setup a directory on my machine as one of the repositories for yumex?

I use Fedora + all the update on a x86_64 runnig 64 bit kernel.

Finalzone
14th September 2006, 08:28 PM
Yes. Check an example from Kadischi documentation (http://fedoraproject.org/wiki/Kadischi/Documentation?highlight=%28kadischi%29#head-f6d8b6c2768827c0f02898b80b35ddf8a7b30e34)

Replace /tmp folder by your own. WIth more practice you will get used to.

Addendum:
- After you generated the directory for your packages, create a file.repo inside /etc/yum.repos.d/ with your name of choice.
- Here is an example of file.repo


[core]
name=Fedora Core $releasever - $basearch
baseurl=path/$releasever/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


- Baseurl is the path of your directory you want to use.
- Set enabled=1 and gpgcheck=0 if you don't want to check the keys

Hope it helps.