I had to re-install Fedora 10 on a home desktop PC. In regard to this:
Is it possible to have a local cache/ "repository" of all 1) Updates (Critical, Security, Bug-fixes), and 2) Additional installed rpm's (that were installed through PackageKit), e.g. Opera, Adobe Reader, etc. so that I do not have to download all those again (800 MB + D/L)
This would be similar to the 'aptonCD' package in Ubuntu ( http://aptoncd.sourceforge.net/)
APTonCD is a tool with a graphical interface which allows you to create one
or more CDs or DVDs (you choose the type of media) with all of the packages you've downloaded via APT-GET or APTITUDE, creating a removable repository that you can use on other computers. APTonCD will also allow you to automatically create media with all of your .deb packages located in one specific repository, so that you can install them into your computers without the need for an internet connection.
Thanks,
Jay
On Fri, Aug 14, 2009 at 23:32:48 +0530, Jay Mistry jaylinux53@gmail.com wrote:
I had to re-install Fedora 10 on a home desktop PC. In regard to this:
Is it possible to have a local cache/ "repository" of all
- Updates (Critical, Security, Bug-fixes), and
- Additional installed rpm's (that were installed through PackageKit), e.g.
Opera, Adobe Reader, etc. so that I do not have to download all those again (800 MB + D/L)
Sure. Just put the rpms of interest in a directory, run createrepo on the directory and set up an appropriate repo description in /etc/yum.repos.d/*.repo for some value of *.
For myself I usually mirror the relevant arch parts of updates and updates-testing and only put a few special things in a local repo.
On Fri, Aug 14, 2009 at 23:32:48 +0530, Jay Mistry jaylinux53@gmail.com wrote:
I had to re-install Fedora 10 on a home desktop PC. In regard to this:
Is it possible to have a local cache/ "repository" of all
- Updates (Critical, Security, Bug-fixes), and
- Additional installed rpm's (that were installed through PackageKit),
e.g.
Opera, Adobe Reader, etc. so that I do not have to download all those again (800 MB + D/L)
Sure. Just put the rpms of interest in a directory, run createrepo on the directory and set up an appropriate repo description in /etc/yum.repos.d/*.repo for some value of *.
For myself I usually mirror the relevant arch parts of updates and updates-testing and only put a few special things in a local repo.
Thanks for the reply.
Are they to be copied from /var/cache/yum to the dir that is to be used as local repo ? On my PC (this is a non-networked desktop PC), this directory has: /fedora/packages/ & /updates/packages - both newly-created after I started the Update applet.
I Googled for this for Fedora Linux, but mostly the results refer to networked PC's.
Jay
On Sat, Aug 15, 2009 at 02:00:14 +0530, Jay Mistry jaylinux53@gmail.com wrote:
Are they to be copied from /var/cache/yum to the dir that is to be used as local repo ? On my PC (this is a non-networked desktop PC), this directory has: /fedora/packages/ & /updates/packages - both newly-created after I started the Update applet.
If the rpms are currently in the cache directory you'd want them someplace else so that they don't get deleted by yum.
On Sat, 2009-08-15 at 02:00 -0500, Bruno Wolff III wrote:
If the rpms are currently in the cache directory you'd want them someplace else so that they don't get deleted by yum.
Or set yum to not delete the cache...
On Sat, 2009-08-15 at 23:52 +0930, Tim wrote:
On Sat, 2009-08-15 at 02:00 -0500, Bruno Wolff III wrote:
If the rpms are currently in the cache directory you'd want them someplace else so that they don't get deleted by yum.
Or set yum to not delete the cache...
+1
An option to not delete the latest version of installed packages from the cache would be useful in some scenarios, e.g. cloning an installation.
poc
On 08/15/2009 08:22 AM, Tim wrote:
On Sat, 2009-08-15 at 02:00 -0500, Bruno Wolff III wrote:
If the rpms are currently in the cache directory you'd want them someplace else so that they don't get deleted by yum.
Or set yum to not delete the cache...
Which you can do by editing /etc/yum.conf and changing the line:
keepcache=0
to
keepcache=1
On Sat, 2009-08-15 at 09:06 -0600, Stuart McGraw wrote:
On 08/15/2009 08:22 AM, Tim wrote:
On Sat, 2009-08-15 at 02:00 -0500, Bruno Wolff III wrote:
If the rpms are currently in the cache directory you'd want them someplace else so that they don't get deleted by yum.
Or set yum to not delete the cache...
Which you can do by editing /etc/yum.conf and changing the line:
keepcache=0
to
keepcache=1
As I said earlier, it would be useful to keep only the latest versions, i.e. when a package is updated, remove the old cached rpm. Maybe that's what keepcache=1 already does, but the man page is not clear.
poc
On Sat, Aug 15, 2009 at 1:01 AM, Bruno Wolff III bruno@wolff.to wrote:
On Fri, Aug 14, 2009 at 23:32:48 +0530,
Jay Mistry jaylinux53@gmail.com wrote:
I had to re-install Fedora 10 on a home desktop PC. In regard to this:
Is it possible to have a local cache/ "repository" of all
- Updates (Critical, Security, Bug-fixes), and
- Additional installed rpm's (that were installed through PackageKit),
e.g.
Opera, Adobe Reader, etc. so that I do not have to download all those again (800 MB + D/L)
Sure. Just put the rpms of interest in a directory, run createrepo on the directory and set up an appropriate repo description in /etc/yum.repos.d/*.repo for some value of *.
For myself I usually mirror the relevant arch parts of updates and updates-testing and only put a few special things in a local repo.
As an extension of this: is it possible to upgrade a Fedora 10 install to Fedora 11, by using the Fedora 11 DVD as a local repository ? This would save me (and also lot of other people who do not have fast Internet connections and/or with time-capped Internet subscriptions), a lot of bandwidth and time (and $$).
(As a 'by the by', I also prefer the Fedora 10 theme & artwork ('Solar' theme) over Fedora 11's).
Thanks,
Jay
On Sun, Aug 16, 2009 at 01:05:29 +0530, Jay Mistry jaylinux53@gmail.com wrote:
As an extension of this: is it possible to upgrade a Fedora 10 install to Fedora 11, by using the Fedora 11 DVD as a local repository ? This would save me (and also lot of other people who do not have fast Internet connections and/or with time-capped Internet subscriptions), a lot of bandwidth and time (and $$).
Yes. That's what happens normally when you upgrade using a DVD or CD. You possibly still want to enable the updates and everything repositories to handle updating stuff that is either not on the DVD/CD or stuff that has had updates since the DVD/CD image was created. In your case you may not want to do that, because that could trigger a lot of downloading that you may want to spread out over time.
On Saturday 15 August 2009 12:35 PM, Jay Mistry wrote:
On Sat, Aug 15, 2009 at 1:01 AM, Bruno Wolff IIIbruno@wolff.to wrote:
On Fri, Aug 14, 2009 at 23:32:48 +0530,
Jay Mistryjaylinux53@gmail.com wrote:
I had to re-install Fedora 10 on a home desktop PC. In regard to this:
Is it possible to have a local cache/ "repository" of all
- Updates (Critical, Security, Bug-fixes), and
- Additional installed rpm's (that were installed through PackageKit),
e.g.
Opera, Adobe Reader, etc. so that I do not have to download all those again (800 MB + D/L)
Sure. Just put the rpms of interest in a directory, run createrepo on the directory and set up an appropriate repo description in /etc/yum.repos.d/*.repo for some value of *.
For myself I usually mirror the relevant arch parts of updates and updates-testing and only put a few special things in a local repo.
As an extension of this: is it possible to upgrade a Fedora 10 install to Fedora 11, by using the Fedora 11 DVD as a local repository ? This would save me (and also lot of other people who do not have fast Internet connections and/or with time-capped Internet subscriptions), a lot of bandwidth and time (and $$).
This thread might be useful for creating a local repo https://www.redhat.com/archives/fedora-list/2009-June/thread.html#01934
(As a 'by the by', I also prefer the Fedora 10 theme& artwork ('Solar' theme) over Fedora 11's).
Me too! I don't understand why none of the Leonidas art work has a lion on it. I was pretty excited when I saw the logo on the project website, but as much disappointed when I found out "no lion" in the actual artwork. :(
On Sat, 2009-08-15 at 10:40 -0430, Patrick O'Callaghan wrote:
An option to not delete the latest version of installed packages from the cache would be useful in some scenarios, e.g. cloning an installation.
I wish there was an easy way to specify 2 or 3 versions of all packages should be kept. That makes it easier to revert if an upgrade turns out to be a downgrade. It can be hard to find older versions of packages on some mirrors.
On Sun, Aug 16, 2009 at 2:41 AM, Suvayu Ali <fatkasuvayu+linux@gmail.comfatkasuvayu%2Blinux@gmail.com
wrote:
On Saturday 15 August 2009 12:35 PM, Jay Mistry wrote:
On Sat, Aug 15, 2009 at 1:01 AM, Bruno Wolff IIIbruno@wolff.to wrote:
On Fri, Aug 14, 2009 at 23:32:48 +0530,
Jay Mistryjaylinux53@gmail.com wrote:
I had to re-install Fedora 10 on a home desktop PC. In regard to this:
Is it possible to have a local cache/ "repository" of all
- Updates (Critical, Security, Bug-fixes), and
- Additional installed rpm's (that were installed through PackageKit),
e.g.
Opera, Adobe Reader, etc. so that I do not have to download all those again (800 MB + D/L)
Sure. Just put the rpms of interest in a directory, run createrepo on the directory and set up an appropriate repo description in /etc/yum.repos.d/*.repo for some value of *.
For myself I usually mirror the relevant arch parts of updates and updates-testing and only put a few special things in a local repo.
As an extension of this: is it possible to upgrade a Fedora 10 install to Fedora 11, by using the Fedora 11 DVD as a local repository ? This would save me (and also lot of other people who do not have fast Internet connections and/or with time-capped Internet subscriptions), a lot of bandwidth and time (and $$).
This thread might be useful for creating a local repo https://www.redhat.com/archives/fedora-list/2009-June/thread.html#01934
Thanks for pointing it out. I will try out the instructions there and also at these 2 links later on in the week,
http://www.labtestproject.com/using_linux/setup_to_install_software_package_... http://www.labtestproject.com/using_linux/install_software_from_fedora_insta...
Jay
Patrick O'Callaghan schrieb:
Hello!
As I said earlier, it would be useful to keep only the latest versions, i.e. when a package is updated, remove the old cached rpm. Maybe that's what keepcache=1 already does, but the man page is not clear.
You could use repomanage (a part of yum-utils package) to delete old packages in the cache.
On Sat, 2009-08-22 at 17:35 +0200, Adalbert Prokop wrote:
Patrick O'Callaghan schrieb:
Hello!
As I said earlier, it would be useful to keep only the latest versions, i.e. when a package is updated, remove the old cached rpm. Maybe that's what keepcache=1 already does, but the man page is not clear.
You could use repomanage (a part of yum-utils package) to delete old packages in the cache.
Thanks, I really wanted it to happen automatically but this could be a good start. Perhaps if yum had a post-processing hook the user could configure it to do this.
poc
On Sat, Aug 15, 2009 at 1:01 AM, Bruno Wolff III bruno@wolff.to wrote:
On Fri, Aug 14, 2009 at 23:32:48 +0530,
Jay Mistry jaylinux53@gmail.com wrote:
I had to re-install Fedora 10 on a home desktop PC. In regard to this:
Is it possible to have a local cache/ "repository" of all
- Updates (Critical, Security, Bug-fixes), and
- Additional installed rpm's (that were installed through PackageKit),
e.g.
Opera, Adobe Reader, etc. so that I do not have to download all those again (800 MB + D/L)
Sure. Just put the rpms of interest in a directory, run createrepo on the directory and set up an appropriate repo description in /etc/yum.repos.d/*.repo for some value of *.
For myself I usually mirror the relevant arch parts of updates and updates-testing and only put a few special things in a local repo.
In addition, there is a yum plugin that may serve the same function:
yum-plugin-local
When this plugin is installed it will automatically copy all downloaded packages to a repository on the local file system, and (re)build that repository. This means that anything you've downloaded will always exist, even if the original repo removes it (and can thus. be reinstalled/downgraded/etc.).
Have just installed it.
Jay
-- Linux User 483705 @ http://counter.li.org/ (Linux Counter)