You are not logged in.

#1 2015-04-24 18:16:03

stevepa
Member
From: Texas USA
Registered: 2012-02-12
Posts: 113

pacman returns error when using custom local repository

Referring to https://wiki.archlinux.org/index.php/Pa … repository
Fully updated system using standard repos, otherwise.

When running

pacman -S htop-temperature

I get this error

[root@archover customrepo]# pacman -S htop-temperature
warning: database file for 'customrepo' does not exist
error: target not found: htop-temperature

the htop-temperature is built from AUR, as my first attempt at understanding local repositories.

I thought pacman would see the customrepo i created as follows:

Contents of repo /var/cache/customrepo/x86_64

[root@archover x86_64]# ls -alh
total 80K
drwxr-xr-x 2 root root 4.0K Apr 24 13:02 .
drwxr-xr-x 3 root root 4.0K Apr 24 12:59 ..
lrwxrwxrwx 1 root root   20 Apr 24 13:02 customrepo.db -> customrepo.db.tar.gz
-rw-r--r-- 1 root root  584 Apr 24 13:02 customrepo.db.tar.gz
-rw-r--r-- 1 root root  585 Apr 24 13:02 customrepo.db.tar.gz.old
-rw-r--r-- 1 root root  62K Apr 24 12:33 htop-temperature-1.0.3-1-x86_64.pkg.tar.xz

My pacman.conf

[customrepo]
SigLevel = Optional TrustAll
Server = file:///var/cache/customrepo/$arch

My execution of repo-add

 repo-add /var/cache/customrepo/x86_64/customrepo.db.tar.gz /var/cache/customrepo/x86_64/htop-temperature-1.0.3-1-x86_64.pkg.tar.xz 

which completed without error. I had originally created the custom repo without the subdir x86_64, which I added, then removed the original repo, and readded, all without error.

Questions:
* Shouldn't pacman -S htop-temperature actually pull the aur built package from my custom repo and install it transparently?
* Why am I getting the pacman error?

Thanks in advance.
Steve.

Last edited by stevepa (2015-04-24 18:22:05)


Arch - LVM - ext4 - gnome (T60p 14.1 1400p  x86_64), (T60 15 flexview 1400p i686)

Offline

#2 2015-04-24 18:57:45

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: pacman returns error when using custom local repository

sync database first wink -Sy wink

Offline

#3 2015-04-24 19:09:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pacman returns error when using custom local repository

Or use 'pacman -Syu foo'.

Offline

#4 2015-04-28 20:54:56

stevepa
Member
From: Texas USA
Registered: 2012-02-12
Posts: 113

Re: pacman returns error when using custom local repository

djgera wrote:

sync database first wink -Sy wink

Sorry for late reply.

This worked!!

I was able to do a #pacman -S htop-temperature

as if it came from the regular repo.

Tks to both of you.

Last edited by stevepa (2015-04-28 22:29:48)


Arch - LVM - ext4 - gnome (T60p 14.1 1400p  x86_64), (T60 15 flexview 1400p i686)

Offline

#5 2015-04-29 20:45:33

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: pacman returns error when using custom local repository

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

Board footer

Powered by FluxBB