You are not logged in.
I'm using a distro based on Arch called LinHES. The developers have their own package repos (called core-testing and extra-testing). I want to pull a package from the official arch repos and I want any/all dependencies to also get pulled from the official arch repos. How is this accomplished?
Example: I tried to install tightvnc from the arch repos, but the dependencies got pulled from the LinHES repos:
# pacman -S extra/tightvnc
resolving dependencies...
looking for inter-conflicts...
Targets (3): printproto-1.0.4-1 libxp-1.0.0-2 tightvnc-1.3.9-5
Total Download Size: 0.91 MB
Total Installed Size: 2.04 MB
Proceed with installation? [Y/n] y
:: Retrieving packages from core-testing...
printproto-1.0.4-1-i686 8.6K 45.9K/s 00:00:00 [####################################] 100%
libxp-1.0.0-2-i686 89.9K 164.9K/s 00:00:01 [####################################] 100%
:: Retrieving packages from extra...
tightvnc-1.3.9-5-i686 828.2K 51.9K/s 00:00:16 [####################################] 100%
checking package integrity...
(3/3) checking for file conflicts [####################################] 100%
(1/3) installing printproto [####################################] 100%
(2/3) installing libxp [####################################] 100%
(3/3) installing tightvnc [####################################] 100%Here is my /etc/pacman.conf:
[options]
LogFile = /var/log/pacman.log
NoUpgrade = etc/passwd etc/group etc/shadow etc/sudoers
NoUpgrade = etc/fstab etc/raidtab etc/ld.so.conf
NoUpgrade = etc/rc.conf etc/rc.local
NoUpgrade = etc/modprobe.conf etc/modules.conf
NoUpgrade = etc/lilo.conf boot/grub/menu.lst
NoUpgrade = data/srv/hobbit/etc/bb-hosts
NoUpgrade = etc/func/minion.conf
HoldPkg = pacman glibc
CacheDir = /data/var/cache/pacman/pkg
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here.
# - local/custom mirrors can be added here or in separate files
#
[core-testing]
Server = http://knoppmyth.net/repo/i686/core-testing
[extra-testing]
Server = http://knoppmyth.net/repo/i686/extra-testing
########################ARCH DEFAULTS#############
[core]
Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
[community]
Include = /etc/pacman.d/mirrorlistOffline
If you don't want to use the linHES repos at all, remove them from pacman.conf. If you want the Arch repos to take precedence over the linHES repos, move the linHES ones to the end of the repo list.
Read man pacman.conf for more details.
Offline
Thanks for the info, tomk. I know there are switches/conf file one can use with debian/apt to control this behavior and I figured pacman has some similar features.
Offline