You are not logged in.

#1 2009-01-23 15:44:54

Thom1
Member
Registered: 2009-01-23
Posts: 5
Website

(solved) Priority of repo

Hi,

I excuse me now for my english because I'm french.
I use this english forum because I can't find a solution to my problem anywhere.

I have my own local repo and I put in pacman.conf in first (before [core]). In my repo, there are packages I've made with a little modified pkgbuild from abs keeping the same name and version of original pkgbuild (if I don't install new version of software). Of course, I want my repo to be "the first to be used" by pacman.

The problem is the next : when I upgrade arch with "pacman -Syu", pacman doesn't install new version of packages in my repo.
For example : I take the pkgbuild of mpd and I have a package called "mpd-0.14.1-1-i686" in my repo. Now there is "mpd-0.14.1-3-i686" in [extra] but pacman doesn't upgrade it because my repo is the first.

Any idea ?

Thanks

Last edited by Thom1 (2009-01-23 16:33:48)

Offline

#2 2009-01-23 15:59:03

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: (solved) Priority of repo

I keep my local repo last in the list, and if I need to install something from it I just use "pacman -Sy myrepo/package".

Offline

#3 2009-01-23 16:10:04

Thom1
Member
Registered: 2009-01-23
Posts: 5
Website

Re: (solved) Priority of repo

Ok, but I want that pacman install newer package automatically

Offline

#4 2009-01-23 16:12:07

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: (solved) Priority of repo

If there is a more recent package in a repo with higher priority it gets installed automatically on my system.

Offline

#5 2009-01-23 16:20:27

Thom1
Member
Registered: 2009-01-23
Posts: 5
Website

Re: (solved) Priority of repo

On my system too but I want my repo highest priority and more recent package

Offline

#6 2009-01-23 16:31:18

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: (solved) Priority of repo

If you want to keep your repo at the top of the list and still get the most recent official updates, you will need to keep it in sync with the official repos. Write a script that checks the official repos for updates to your local packages, and deletes your local version if necessary. pacman can't do what you're looking for without some help.

Offline

#7 2009-01-23 16:33:28

Thom1
Member
Registered: 2009-01-23
Posts: 5
Website

Re: (solved) Priority of repo

ok, thanks

Offline

#8 2009-01-23 16:46:17

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: (solved) Priority of repo

Thom1 wrote:

On my system too but I want my repo highest priority and more recent package

If you have a more recent package in your repo, assuming it has the lowest priority, pacman should not replace it with a package from core or extra, it'll just print out a warining that the installed version is more recent than the one in the repositories.

Offline

#9 2009-01-23 16:57:19

Thom1
Member
Registered: 2009-01-23
Posts: 5
Website

Re: (solved) Priority of repo

I know, thanks again smile

Offline

Board footer

Powered by FluxBB