You are not logged in.

#1 2009-03-01 01:57:39

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

[solved]pacman like better packages from one repository instead of ano

Hi,

I'm working on an Arch-based distro and would like to use Arch's repos: [core], [extra] and [community], however, I need pacman to ignore some branded packages (like KDE and Gnome, etc) for obvious reasons, and instead replace them with our own branded packages on our distro repo... but since we can't have always the latest gnome, kde, lxde or any branded package, we need that pacman automagickally prefer packages from a defined repo...

is there some way to archieve this without having to use different package names? I know we could make kde-firefly packages that provided kde, but this could maybe confuse users...

Thanks in advance.

Last edited by LTSmash (2009-03-01 21:09:40)


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#2 2009-03-01 06:19:43

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [solved]pacman like better packages from one repository instead of ano

Put your repos above the Arch ones in pacman.conf.

Offline

#3 2009-03-01 20:38:30

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: [solved]pacman like better packages from one repository instead of ano

Allan wrote:

Put your repos above the Arch ones in pacman.conf.

If I use this aproach, for example, what will happen if in our custom repo we have for example foo 4.5.6 and in extra there's foo 4.6.0?

Will pacman like better extra's foo?


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#4 2009-03-01 20:40:26

haxit
Member
From: /home/haxit
Registered: 2008-03-04
Posts: 1,247
Website

Re: [solved]pacman like better packages from one repository instead of ano

Is there a feature in pacman where if you put something in pacman.conf it will ignore those packages?


Archi686 User | Old Screenshots | Old .Configs
Vi veri universum vivus vici.

Offline

#5 2009-03-01 20:43:45

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [solved]pacman like better packages from one repository instead of ano

LTSmash wrote:
Allan wrote:

Put your repos above the Arch ones in pacman.conf.

If I use this aproach, for example, what will happen if in our custom repo we have for example foo 4.5.6 and in extra there's foo 4.6.0?

Will pacman like better extra's foo?

No.  It will use the package from the repo highest in the list.

Offline

#6 2009-03-01 21:08:58

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: [solved]pacman like better packages from one repository instead of ano

Allan wrote:
LTSmash wrote:
Allan wrote:

Put your repos above the Arch ones in pacman.conf.

If I use this aproach, for example, what will happen if in our custom repo we have for example foo 4.5.6 and in extra there's foo 4.6.0?

Will pacman like better extra's foo?

No.  It will use the package from the repo highest in the list.

Ok, thanks, my question is solved big_smile


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#7 2009-03-01 21:12:37

Cdh
Member
Registered: 2009-02-03
Posts: 1,098

Re: [solved]pacman like better packages from one repository instead of ano

haxit wrote:

Is there a feature in pacman where if you put something in pacman.conf it will ignore those packages?

Of course.

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
IgnorePkg   = wine

I have wine ignored because I use a patched Version and have to wait until the patch for the newer versions are available before recompiling.
Wine should not be a dependency of any other package so I consider this rather safe, but you should be carefull because you will run into trouble if some upgrade depends on a higher Version of your ignored package.


฿ 18PRsqbZCrwPUrVnJe1BZvza7bwSDbpxZz

Offline

Board footer

Powered by FluxBB