How to create custom ArchLinux repos to take home

We have already explained before how to make mini-repos or custom Debian / Ubuntu repositoriesWell, it's the turn of ArchLinux also 😀
Suppose we have the following situation ...

  • We have a PC at home, and at home we don't have internet.
  • In the office we have internet.

What we will do is make a mini repository with the packages that we have downloaded at the office, for that mini repo to take home and be able to install applications at home, even when we do not have internet.

For that, on the PC in our office we will do the following:

  1. We will create a new folder in our HOME.
  2. We will copy all the packages that we have downloaded to that folder.
  3. We will do a mini-repo with those packages.

And ... launching a new method to show you tutorials in terminal, here is the demonstration HAHA:

% CODE1%

Ready, we have our mini repository done, now we are going to configure this repo on our other PC:

% CODE2%

As you can see ... pretty simple all right? 😀

And I don't think there is anything else to add, just great right?

We no longer have an excuse, no matter if we do not have internet at home, we can install ArchLinux 😉

regards


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   gabriel ivan said

    Greetings to all I have a query, what happens if I delete the pacman cache? can you recover all those files to have them in this mini-repo? Or would I have to download everything again and not delete anything hahaha esop greetings and thanks for your work !!

    1.    KZKG ^ Gaara said

      Clearing the cache should have nothing to do with it.
      As such the .db for the mini repo are not made / created by copying the .db cached by pacman, but are created at that time with the repo-add step.

      At least that's what it looks like 🙂

      1.    Tito Seguin said

        Well, I'm sorry but you're wrong, if you delete the pacman cache, which I usually do; the folder will be completely empty.

        1.    KZKG ^ Gaara said

          If you mean the cache of the files, yes, obviously if you delete / var / cache / pacman / pkg / * this will not work, but if you delete the cache of the repos (the .db) it will work.