Re: yum local repo question

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

 



can comert wrote:
Hi,
I'm using a fedora9 edition on my desktop
i have a limited internet connection. I want to get the links of updates from my fedora installed desktop and download updates from a different computer (not fedora installed) and then i will copy *.rpm packeges to /var/cache/yum/... (optinal to repo)
So how  can i get the (just) links of needed update packages???

You can keep a copy of /var/cache/yum of a server, and NFS mount it, then create the links. If you do this for multiple machines you can copy anything they download to the common repository.

Mount the common repository: mount -o ro,soft server:/export/FC9 /mnt/FC9

Now create symbolic links with a script. I have the script, but it's on a machine down for the holiday, and I don't have "wake on question" so I can't boot it from here. This is typed by hand, and is a guide only.

CMN=/mnt/FC9
VAR=/var/cache/yum

# cd and create links
cd $CMN
find */packages -type f |
while read pkg; do
 if [ ! -x $VAR/$pkg ]; then
  # create the directory if missing (for add new repo)
  dir=${pkg%/*}
  [ -d $VAR/$dir ] || mkdir -p $VAR/$dir
  # symbolic link the package
  ln -s $CMN/$pkg $VAR/$pkg
 fi
done

Hope this is what you are looking for

--
Bill Davidsen <davidsen@xxxxxxx>
  "We have more to fear from the bungling of the incompetent than from
the machinations of the wicked."  - from Slashdot

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux