Results 1 to 5 of 5

Thread: Is it possible to put /var/cache/apt/archives on a usb flashdrive?

  1. #1
    Join Date
    Jun 2020
    Beans
    23
    Distro
    Ubuntu 20.04 Focal Fossa

    Is it possible to put /var/cache/apt/archives on a usb flashdrive?

    Due to having data cap on my internet connection and also having three Ubuntu systems to keep updated I wondered if I coud put /var/cache/apt/archives on a partiton on a flashdrive. I could then mount the partition via an entry in fstab, do the updates in one system and move the flashdrive to other systems to be updated. Do you think this is the right way of doing so?

    I appreciate much your thoughts and suggestions.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Is it possible to put /var/cache/apt/archives on a usb flashdrive?

    apt-cacher-ng

  3. #3
    Join Date
    Jun 2020
    Beans
    23
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Is it possible to put /var/cache/apt/archives on a usb flashdrive?

    Quote Originally Posted by TheFu View Post
    apt-cacher-ng
    Thanks for your reply and suggestion!
    I have to admit that I have never set up a network so this approach at the moment seems to be above my computing competence. I will surely look into it and see if I can make it work since this looks to be the best solution. If you know of some tutorials for setting up a network suited for newbies please let me know. I will be doing some research on my own as well. Thanks again!

  4. #4
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Is it possible to put /var/cache/apt/archives on a usb flashdrive?

    Use static IPs for servers and desktops.
    DHCP with dynamic IPs are fine for laptops and clients that move in and out of the network.

    The system running apt-cacher-ng is a server and life will be 1000x easier if it has a static IP.

    Ensure all clients can ping the apt-cacher-ng using the hostname or "{hostname}.local". That means either /etc/hosts or running a DNS server somewhere. Some better home routers can do this.

    So, my apt-cacher-ng server is named "istar", so my 15-20 clients can ping it by ping istar. I run an internal DNS server so all my internal systems can find each other. Long ago, I used the simple /etc/hosts file method. For 3 systems, I'd use that.
    Last edited by TheFu; June 2nd, 2020 at 04:47 PM. Reason: s/find/fine/

  5. #5
    Join Date
    Jun 2020
    Beans
    23
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Is it possible to put /var/cache/apt/archives on a usb flashdrive?

    Great! Thanks for the tips!

Bookmarks

Posting Permissions

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