Results 1 to 7 of 7

Thread: Is there an Apt-Cacher equivilent?

  1. #1
    Join Date
    Jul 2010
    Location
    Florida
    Posts
    22

    Default Is there an Apt-Cacher equivilent?

    I have been running Kubuntu for a while now and am looking to switch over to OpenSuse (I prefer KDE and OpenSuse seems to have good reviews with it). My home internet connection is very slow and I am currently using Apt-Cacher to reduce bandwidth requirements for Linux updates (I have multiple machines). Is there an RPM application that does this same job?

  2. #2
    Join Date
    Jun 2008
    Location
    Kentucky, USA
    Posts
    466

    Default Re: Is there an Apt-Cacher equivilent?

    Never heard of it, but is a nice concept. I don't currently know of anything like this for zypper. I still manually sync packages from /var/cache/zypp (caching is off by default) with an external drive to each machine to reduce bandwidth usage. I used to use aptoncd for this with Kubuntu. Sounds like an idea for OpenFATE. https://features.opensuse.org/
    Klaatu Barada Nikto

  3. #3

    Default Re: Is there an Apt-Cacher equivilent?

    In yast -> software repositories -> "keep downloaded packages" would retain any downloaded rpms. You'd then have to set them as a repository on the the other machines (you could probably set them as a repository of type = directory making sure you check "plain RPM directory" when adding the repo).

    You could also make standard repositories opensuse repository setup local - Google Search

    this looks good http://www.thelazysysadmin.net/2009/...te-repository/

  4. #4
    Join Date
    Jul 2010
    Location
    Florida
    Posts
    22

    Default Re: Is there an Apt-Cacher equivilent?

    Setting up a local repo/mirror I could find. The cool part about Apt-Cacher is that it acted as a proxy for apt updates on your network so it only downloaded as a package it diddnt already have was requested. And the client PC only needed 1 file with the proxy info for Apt added...I diddnt need to alter the repository address information.

  5. #5
    Carlos E. R. NNTP User

    Default Re: Is there an Apt-Cacher equivilent?

    On 2010-07-13 15:06 GMT Avanesov79 wrote:

    >
    > I have been running Kubuntu for a while now and am looking to switch
    > over to OpenSuse (I prefer KDE and OpenSuse seems to have good reviews
    > with it). My home internet connection is very slow and I am currently
    > using Apt-Cacher to reduce bandwidth requirements for Linux updates (I
    > have multiple machines). Is there an RPM application that does this
    > same job?


    Not automatically.

    However, you can create your own local repository, filled with the rpms
    you download for install (I think it is explained in the wiki somewhere,
    if not it is in the opensuse mail list archive).

    For this to work the first step is to tick each repository to keep a
    copy of all rpms it downloads. This has to be done manually for all
    repos on all machines.


    Or, instead of a local repo, you can share that directory where it
    downloads the rpms between all machines, via nfs. This is the method I
    use.

    One machine will be the server (the one with more free space or that
    is more time running). In this one export, via nfs, read/write, the
    directory "/var/cache/zypp/packages/".

    Warning: it needs write access being root. This is not the default for
    nfs. norootsqash, was it?

    On the rest of machines, you have to import that same directory, into
    "/var/cache/zypp/nfs_packages". And, make "/var/cache/zypp/packages" a
    symlink to "/var/cache/zypp/nfs_packages" (this way, if you forget to
    mount the nfs dir, zypper should fail (not tested)).

    You have to make sure that when you add repos on each machine you use
    the same name you used in the server - or you will have duplicates.

    Alternatively, make the subdirectories of local directory
    "/var/cache/zypp/packages/" symlinks pointing each one to the
    equivalent directory in "/var/cache/zypp/nfs_packages/" of the server.


    You can run the package manager in any order, server or clients.
    However, only one should be actively doing downloads, or you might get
    collisions when two managers attempt to download the same package,
    writing to the same file on disk on the server. I have not tried this,
    but I assume the manager would give an error when verifying the
    checksum or gpg signature of that package. Thus, don't use automated
    updates; checking for updates is fine; the actual download must be one
    at a time. If all goes well, a package downloaded by one machine will
    not be downloaded by any other.

    HTH.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" GM (Minas Tirith))


  6. #6
    Join Date
    Jul 2010
    Location
    Florida
    Posts
    22

    Default Re: Is there an Apt-Cacher equivilent?

    Quote Originally Posted by 67GTA View Post
    Sounds like an idea for OpenFATE. https://features.opensuse.org/
    Done

    https://features.opensuse.org/310266

    @Carlos E. R.

    Thanks for that setup...ill probably try/use it until something better comes along.

  7. #7
    Join Date
    Jul 2010
    Location
    Florida
    Posts
    22

    Default Re: Is there an Apt-Cacher equivilent?

    Just following up:

    I ended up Exporting

    /etc/zypp/repos.d read only
    /var/cache/zypp/packages read-write no_root_squash

    Each export is mounted in its mirror location on each client. This way all packages are shared and repo configuration (namely which repos and the "do not delete" option) is controlled from the server.

    A couple minor issues I have with this setup:
    1. After new repos are added I have to run zypper on the server for them to start working with the clients.
    2. Servers and clients will have the exact same repos active.
    3. To avoid errors (as stated previously) only one client can be downloading at a time.

    Neither of these are major problems in my setup, but I would still prefer a caching proxy designed for rpm's if/when one becomes available.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •