You are not logged in.

#1 2005-08-05 01:52:57

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Opition to exclude a certian dependency?

Is there a feature to exclude certian dependency? Lets say for mozilla-firefox I don't want to install xorg. Is it possible to install everything else execpt xorg? That might be bad example but I think you get my point. If you don't just ask I will try to clear it up.


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#2 2005-08-05 02:01:49

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Opition to exclude a certian dependency?

You could use the -d switch to bypass dependency checking. You install firefox (pacman -S mozilla-firefox) then you remove xorg (pacman -Rd xorg). Or, pacman -Sd mozilla-firefox will install firefox but won't install the depends.

Offline

#3 2005-08-05 02:36:42

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Opition to exclude a certian dependency?

Hm maybe a feature can be implemented into pacman to exculde a certian dependency I think that would be helpful. How about you guys? Should I file a feature request?


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#4 2005-08-05 03:10:28

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Opition to exclude a certian dependency?

#!/bin/bash
[ $# -ne 2 ] && echo "usage: <script> <package> <depend_to_remove>"
pkg=$1
dep=$2
i=$(find /var/lib/pacman -name $pkg* | sed 's|.*.local.*||g')
[ ! -f $i/depends ] && exit 1
cat $i/depends | sed "s|$dep||g"
echo "install $pkg? (y/n)"
read c
[ $(echo $c | grep [Yy]) ] && pacman -S $pkg

I haven't test it, but it should work.

Offline

#5 2005-08-05 03:10:52

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Opition to exclude a certian dependency?

I don't think that there will be much demand for that feature.  Most users install the package with all its depends or they rebuild it with ABS if they want to remove (or add) features/dependencies.  The problem with the procedure described in my previous post is that it could break the package.

Offline

#6 2005-08-05 12:32:37

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Opition to exclude a certian dependency?

Penguin thanks.
Snowman that make senses.


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#7 2005-08-05 12:37:57

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Opition to exclude a certian dependency?

Why would you not want to install a dependency?

Offline

#8 2005-08-05 14:29:43

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Opition to exclude a certian dependency?

Well if you want to run app remotly via ssh on like a server then you wouldn't want xorg. Plus there was another package that wanted to install xorg but wasn't needed.


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#9 2005-08-05 14:41:25

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Opition to exclude a certian dependency?

Well, if a pkg can be run without xorg should xorg be depend?  Is that a good question?

Offline

#10 2005-08-05 21:43:31

juergen
Developer
From: Frankfurt/Germany
Registered: 2005-04-11
Posts: 48
Website

Re: Opition to exclude a certian dependency?

While mozilla-firefox  doesnt require a x-server it  requires x-libraries.
Both (libs and x-server)  are bundelt in the xorg package. So you NEED to install xorg.

Offline

#11 2005-08-05 22:04:14

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Opition to exclude a certian dependency?

dibblethewrecker wrote:

Well, if a pkg can be run without xorg should xorg be depend?  Is that a good question?

No, what he's saying is that with X forwarding over ssh, I can run firefox from a remote machine without running X on that machine (it has to be running locally though) - I used to forward xterms from my machine at home to my work computer

Offline

#12 2005-08-05 23:21:45

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Opition to exclude a certian dependency?

cheers, phrak wink

Offline

Board footer

Powered by FluxBB