Skip to content

Instantly share code, notes, and snippets.

@sevenissimo
Created July 7, 2024 14:19
Show Gist options
  • Select an option

  • Save sevenissimo/90e1db80faf6bd8c55035d66d760d60f to your computer and use it in GitHub Desktop.

Select an option

Save sevenissimo/90e1db80faf6bd8c55035d66d760d60f to your computer and use it in GitHub Desktop.
Custom Pacman repository

For the purposes of this example, we assume the local repository custom is located in /home/custompkgs.

Append a section for the local repository to /etc/pacman.conf

   [custom]
   SigLevel = Optional TrustAll
   Server = file:///home/custompkgs

Create the repository root and database:

   $ sudo install -d /home/custompkgs -o $USER
   $ repo-add /home/custompkgs/custom.db.tar.gz

If built packages are available, add them to the database:

   $ cd /home/custompkgs
   $ repo-add -n custom.db.tar.gz *.pkg.tar*

Synchronize pacman:

   $ sudo pacman -Syu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment