You are not logged in.

#1 2024-03-05 20:28:04

richbai90
Member
Registered: 2024-03-05
Posts: 2

[Resolved] Pacman not able to find aur packages in local database

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.gz

I 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-bin

The 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-bin

My 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

#2 2024-03-05 21:09:07

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,193
Website

Re: [Resolved] Pacman not able to find aur packages in local database

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.db

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

#3 2024-03-06 19:04:29

richbai90
Member
Registered: 2024-03-05
Posts: 2

Re: [Resolved] Pacman not able to find aur packages in local database

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

#4 2024-03-06 19:31:16

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,193
Website

Re: [Resolved] Pacman not able to find aur packages in local database

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. smile


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

Board footer

Powered by FluxBB