You are not logged in.

#1 2008-12-25 12:24:24

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Work around for unnecessary dependencies

Today while i was doing a clean up of my system, i found that smbclient was installed as a dependency of VLC player. My system is stand alone and as such i dont have much use for that 41Mb dependency if my understanding is not wrong.
Similarly i noticed that hal in testing is dependent upon console kit , package kit etc which i am not sure whether i need or not.  Lots of such dependencies which should actually be optional dependencies but are actually installed by default ....

So is there any way i can skip installing these things(apart from creating a package of myown, which will be a pain in the ass to update).


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

#2 2008-12-25 15:02:31

SamC
Member
From: Calgary
Registered: 2008-05-13
Posts: 611
Website

Re: Work around for unnecessary dependencies

You can use

pacman -Rd package

but it probably isn't recommended.

Last edited by SamC (2008-12-25 15:03:04)

Offline

#3 2008-12-25 16:14:47

Runiq
Member
From: Germany
Registered: 2008-10-29
Posts: 1,053

Re: Work around for unnecessary dependencies

u_no_hu wrote:

So is there any way i can skip installing these things(...)?

That's what the ABS is for - if you don't like the precompiled packages, just compile them for yourself. In a nutshell, you copy the package from your local ABS tree to another directory (for vlc the dir is /var/abs/extra/vlc, for hal it's /var/abs/testing/hal) and run makepkg -o. By tweaking the configure options (usually in the src/<pkgname>/ directory), you can manually adjust which functions you want to compile into the program. When you've done that, you can remove the things you don't need from the "depends" line, makepkg -e, and voilà, get a package without unnecessary dependencies. The package can then be installed using pacman -U <pkgname>.

Updating's pretty easy too, as you usually just need to up the pkgver variable in the package's PKGBUILD and recompile. You might want to add your self-compiled package to the IgnorePkg line in pacman.conf so it isn't overwritten with the standard precompiled package everytime you run -Syu.

Last edited by Runiq (2008-12-25 16:35:44)

Offline

#4 2008-12-30 07:18:34

u_no_hu
Member
Registered: 2008-06-15
Posts: 453

Re: Work around for unnecessary dependencies

@Runiq
I meant apart from AUR/ABS.... thats why i wrote

(apart from creating a package of myown, which will be a pain in the ass to update)

in my initial post. 
Anyway thanks for your comment.

Last edited by u_no_hu (2008-12-30 07:19:21)


Don't be a HELP VAMPIRE. Please search before you ask.

Subscribe to The Arch Daily News.

Offline

Board footer

Powered by FluxBB