Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a PC and a laptop. my laptop is always updated, so for updating the PC I don't want to download the packages again for my PC. What I do is copying rpm files from /var/cache/yum/i386/17/fedora/updates/packages to the corresponding directory of the PC.

Is there a better/faster way to do this? can I say yum connect with ssh to laptop and get updated packages from there?

share|improve this question
up vote 3 down vote accepted

What you can certainly do is create a Yum repository containing the packages from your laptop and then point your PC to use that repository for getting packages.

You can create a repository by installing createrepo and then calling createrepo --database /path/to/local/repository. See the RedHat documentation about creating a Yum repository.

Once you've created a repository, you can point your Yum installation to it by creating a new file in /etc/yum.repos.d. Unfortunately, Yum only accepts http://, ftp://, or file:// URLs for the baseurl argument. So you'll either have to serve the repo over HTTP/FTP, or mount the laptop's filesystem using (for instance) SSHFS.

share|improve this answer

Do you really have no Internet access on the computer, or (more likely) do you just wish to avoid downloading packages twice?

If the latter, one option is to use IntelligentMirror for your site. It will keep a copy of packages downloaded the first time, and the other computers will pick them up from your local IntelligentMirror. It hasn't been updated in several years, however it should still work.

You can also set up your own private Fedora mirror, though this requires a bit of work.

Unless you're severely bandwidth-constrained (i.e. on dialup, or paying per megabyte) it's probably not worth any of the trouble and you shouldn't bother with any of this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.