Re: /var/cache/PackageKit/metadata gets very big

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

 



On Thu, 17 Mar 2016 10:22:36 -0400 (EDT)
"D. Hugh Redelmeier" <hugh@xxxxxxxxxx> wrote:

> On my Fedora 23
> systems, /var/cache/PackageKit/metadata/updates/packages is full
> of .rpm files.  For example, 2.7G on my desktop.
> 
> /var/cache/PackageKit/metadata/fedora/packages has some too.
> 
> "sudo dnf clean packages" doesn't seem to change this.  What does it 
> change?

The dnf package storage is cleared.  PackageKit is independent of
dnf.

> 
> What is the purpose of this directory of RPMs?

Saved in case of problems.

> Why is it considered metadata?
> 
> The more obvious place would be /var/cache/PackageKit/downloads/
> Why isn't this used?

You'd have to ask the PackageKit devs.

> 
> Is there a way of transplanting the RPMs to another system so that
> downloading could be avoided?  I have half a dozen fedora systems and
> it seems a waste to download each update for each system.

rsync them into /var/cache/dnf/[hashed directory entry]/packages/ on the
other systems.  Then run dnf upgrade.  It will reuse the local
packages.  You might have to set dnf to keep rpms in /etc/dnf/dnf.conf,
and manually run dnf clean packages after the update.

> What is the proper way of deleting these RPMs to free up the space?  I
> ask because on some machines (but not all) the space is burdensome.

There is a setting in the file
/etc/PackageKit/PackageKit.conf

# Keep the packages after they have been downloaded
#KeepCache=false

Remove, as root, the hash mark on this configuration option, and
packages won't be kept.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux