You are not logged in.
Hi guys.
I'm wondering if its possible to setup pacman for only use one package of a whole repository, for example:
the repo "repo1", have these three packages: "pkg1", "pkg2" and "pkg3", so I only want to know about "pkg2"... I dont want pacman show me the other packages when I search for "pkg", i dont want pacman can install anything if I do "pacman -S pgk1"... I only want pacman can install or update "pkg2"
definitely, I want to absolutely ignore (ignore at search, at install, at upgrade...) all packages from a repo except one.... is it possible?
thank you ![]()
Offline
Hi guys.
I'm wondering if its possible to setup pacman for only use one package of a whole repository, for example:
the repo "repo1", have these three packages: "pkg1", "pkg2" and "pkg3", so I only want to know about "pkg2"... I dont want pacman show me the other packages when I search for "pkg", i dont want pacman can install anything if I do "pacman -S pgk1"... I only want pacman can install or update "pkg2"
definitely, I want to absolutely ignore (ignore at search, at install, at upgrade...) all packages from a repo except one.... is it possible?
thank you
Yes, it's possible. The odds of your system functioning properly if you do this is not so good, but it is possible (see man pacman for the -d switch). You'll be better off learning about ABS and building your own packages against what you have installed on your system. Of course, if the new package has a shared object bump...
Offline
He may be referring to third party repos which would not be so bad but still the point of Arch is having an updated system.
The only reason to ignore a package would be to avoid known upgrade problems.
![]()
Offline
Yes, I'm referring to a thrid party repo, not a package that I can obtain from ABS. Actually I have no problems using ABS or AUR, but for this package particularly, I would do this way, because the other packages of this third party repo, are svn versions, or packages that exists in extra or community, but with "X" or "Y" option enabled/disabled, and would make a mess in my pacman -Ss outputs.
so, the -d switch of pacman is for skip dependency checks... not what I'm looking for.
returning to my first post example, I want that pacman handle "repo1" like if only exists "pkg2" into that repo.
And don't worry about my system... I'm one of those addicts to "pacman -Syu" with core, extra and community enableds ![]()
Thank you.
PS: I apologize if my english is hard to understand ![]()
Offline
If you want to be absolutely sure that you do not install anything else from that repo, write a script to remove everything except the packages that you want from the that repo's database directory (/var/lib/pacman/sync/<repo>). You will need to run your script after every database update though.
That shouldn't be necessary though. Just move the third party repo to the end of /etc/pacman.conf. Pacman checks the repos in the order that they are specified in your configuration file when looking for packages. If multiple repos have a package named "foo", pacman will grab it from the repo that's closest to the top of your list. This wouldn't solve the problem of "pacman -Ss" output though.
You could also script other solutions such as creating a second pacman root just for that repo to download the package and then install it manually, etc.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline