You are not logged in.
Resolved: Needed to specify the full path to the database.
After suffering through many dependency conflicts due to using Yay to manage AUR installs, I decided it was better to just use Pacman as recommended by the official documentation. I'm using `aur-utils` to assist by managing a local database of built AUR packages. Following the man page I have done the following:
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.gzI have deviated from the man page in only where I store and make my PKGBUILD sources. The steps I have followed in that regard are:
Clone the AUR source
$ cd ~/aur
$ git clone https://aur.archlinux.org/visual-studio-code-bin.git
$ makepkg
$ repo-add -n custom.db.tar *pkg.tar.*The output of the repo-add command is
(base) ➜ visual-studio-code-bin git:(master) ✗ repo-add -n custom.db.tar *pkg.tar.*
==> Extracting custom.db.tar to a temporary location...
==> Extracting custom.files.tar to a temporary location...
==> Adding package 'visual-studio-code-bin-1.87.0-1-x86_64.pkg.tar.zst'
==> WARNING: An entry for 'visual-studio-code-bin-1.87.0-1' already existed
==> Creating updated database file 'custom.db.tar'Finally I try to install the package
$ pacman -Syu # update the databases
$ pacman -Syu visual-studio-code-binThe output:
:: Synchronizing package databases...
core 134.5 KiB 662 KiB/s 00:00 [############################] 100%
extra 8.3 MiB 9.72 MiB/s 00:01 [############################] 100%
multilib 139.8 KiB 3.90 MiB/s 00:00 [############################] 100%
custom is up to date
error: target not found: visual-studio-code-binMy last full system update was on 2024-03-02T21:14:02-0700
My kernel version 6.7.7-zen1-1-zen
Last edited by richbai90 (2024-03-07 17:24:58)
Offline
Unless I'm missing something, you have told pacman that the repo is located at /home/custompkgs, but you're adding packages to a repo in ~/aur?
$ stat /home/custompkgs/custom.db
$ stat ~/aur/custom.dbSakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
That was the problem. I didn't realize I had to specify the full path to the db file if the packages weren't in the same directory. Thanks!
Offline
No problem, please remember to mark your topic as solved by editing the first post and amending the topic title.
https://wiki.archlinux.org/title/Genera … ow_to_post
Oh, and welcome to the forums. ![]()
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline