You are not logged in.
I'm following the instructions from `man aur':
Pacman configuration
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
This is the relevant excerpt from my /etc/pacman.conf:
[aurpkgs]
SigLevel = Optional TrustAll
Server = file:///home/deveng/local/aurpkgs
And this is my shell session:
$ pwd
/home/deveng/local/aurpkgs
$ ls -1a
./
../
aurutils/
aurutils-20.1-1-any.pkg.tar.zst
aurutils.tar.gz
$ sudo install -d /home/deveng/local/aurpkgs -o $USER
$ repo-add /home/deveng/local/aurpkgs/pkgs.db.tar.gz
==> Creating updated database file '/home/deveng/local/aurpkgs/pkgs.db.tar.gz'
==> WARNING: No packages remain, creating empty database.
==> WARNING: No packages remain, creating empty database.
$ repo-add -n pkgs.db.tar.gz aurutils-20.1-1-any.pkg.tar.zst
==> Extracting pkgs.db.tar.gz to a temporary location...
==> Extracting pkgs.files.tar.gz to a temporary location...
==> Adding package 'aurutils-20.1-1-any.pkg.tar.zst'
-> Computing checksums...
-> Creating 'desc' db entry...
-> Creating 'files' db entry...
==> Creating updated database file 'pkgs.db.tar.gz'
$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to date
pkgs.db failed to download
error: failed retrieving file 'pkgs.db' from disk : Couldn't open file /home/deveng/local/aurpkgs/pkgs.db
error: failed to synchronize all databases (failed to retrieve some files)
$ ls -la
total 184
drwxr-xr-x 3 deveng alpm 20480 Oct 24 11:06 ./
drwxr-xr-x 5 deveng deveng 4096 Oct 2 09:11 ../
drwxr-xr-x 4 deveng alpm 4096 Oct 24 09:27 aurutils/
-rw-r--r-- 1 deveng alpm 119742 Oct 24 09:22 aurutils-20.1-1-any.pkg.tar.zst
-rw-r--r-- 1 deveng alpm 13228 Oct 24 09:22 aurutils.tar.gz
lrwxrwxrwx 1 deveng deveng 14 Oct 24 11:06 pkgs.db -> pkgs.db.tar.gz
-rw-r--r-- 1 deveng deveng 592 Oct 24 11:06 pkgs.db.tar.gz
-rw-r--r-- 1 deveng deveng 45 Oct 24 11:06 pkgs.db.tar.gz.old
lrwxrwxrwx 1 deveng deveng 17 Oct 24 11:06 pkgs.files -> pkgs.files.tar.gz
-rw-r--r-- 1 deveng deveng 1072 Oct 24 11:06 pkgs.files.tar.gz
-rw-r--r-- 1 deveng deveng 45 Oct 24 11:06 pkgs.files.tar.gz.old
My guess is that I am misunderstanding something or missing some other detail. I would appreciate any ideas or guidance.
Last edited by FernandoBasso (2024-10-25 09:09:33)
There is a difference between knowing the path and walking the path.
Offline
You'll need to configure the repo appropriately for pacman v7 compat and I strongly suggest you don't pick a home dir base path for this: https://archlinux.org/news/manual-inter … -required/
Offline
You'll need to configure the repo appropriately for pacman v7 compat and I strongly suggest you don't pick a home dir base path for this: https://archlinux.org/news/manual-inter … -required/
I read that piece news about pacman v7 when it camem out, but at the time my other machine did not present any problems and I was able to continue using aur normally with a local repository in $HOME/local/aurpkgs.
I now realize it was still working because I did not merge the .pacnew file with /etc/pacman.conf. And since I did a fresh install on a new machine, /etc/pacman.conf contains the new configs, thus causing the behavior I described.
I simply moved the local repository to /opt/aurpkgs and it worked, and it also worked when I tried with /home/aurpkgs.
Thank you.
There is a difference between knowing the path and walking the path.
Offline