YUM - local repository

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> I faced the following problem:
> Now at home I don't have internet, but I want to use yum, for example, to
> install smbclient and so on... I can download the whole yum repository at
> my work.
> Q:
> May I use that repos. copy at home to upgrade, install RPMS?
>
> example for meeting my needs:
> 1) download http://download.fedora.us/fedora/fedora/1/i386/yum/updates/
> 2) copy to my local home HD ( /var/fedora/1/i386/yum/updates/)
> 3) put right paths in yum.conf
> 4) yum install ....
>
> Any thoughts?

Here is how I set mine up:

---/etc/cron.daily/update_repository ---
#!/bin/sh
MIRROR_HOST=mirrors.secsup.org
RSYNC_REPOSITORY=redhat

LOCAL_DIR=/var/ftp/pub


rsync -av --partial --stats \
--include "fedora/core/updates" \
--include "updates/9/" \
--exclude "redhat" \
--exclude "contrib" \
--exclude "beta" \
--exclude "fedora/core/1/" \
--exclude "development" \
--exclude "updates" \
--exclude "test"  \
${MIRROR_HOST}::${RSYNC_REPOSITORY} ${LOCAL_DIR}


cd /var/ftp/pub/fedora/core/updates/1/i386/
yum-arch .

# Snipped the non-i386 specific stuff...

--- End update_repository script

The main thing you missed is the yum-arch step at the end. Delete the
./headers/ directory from the download copy then rerun yum-arch in your binary
directories (e.g., RPMS/i386, RPMS/i686). The rsync script is not optimal -- I
had weird errors trying to synch the correct directory :D.  But it is working
here for me.

-- 
* The Digital Hermit   http://www.digitalhermit.com
* Unix and Linux Solutions   kwan@xxxxxxxxxxxxxxxxx




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux