You are not logged in.

#1 2009-10-09 01:13:11

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Removing base group packages ok?

I'm wondering if removing some of the packages in the base group that I don't think I need is safe. Is it officially considered a bad idea? Are there likely to be undeclared dependencies on some of these packages, in the way that base-devel packages are implicitly required for using makepkg? Scripts that run "which" to find a command, "gettext" to localize a string, or "mdadm" to see if a RAID is present, for example?

Offline

#2 2009-10-09 01:43:25

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

Re: Removing base group packages ok?

Packages in the "base" group are generally expected to be installed and may not be listed in dependencies...  Saying that, I have removed a number that I know I do not need installed.  If you really need a package, you can always reinstall it.  Just have a rescue CD handy tongue

Offline

#3 2009-10-13 05:43:32

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Removing base group packages ok?

Just don't pacman -Rs glibc tongue


neutral

Offline

#4 2009-10-13 06:01:30

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

Re: Removing base group packages ok?

I have done a "pacman -Rd glibc" once.   Dan was trying to show me that the old pacman.static was not all that static....   Fun times!

Offline

#5 2009-10-13 09:00:58

kirothi
Member
Registered: 2009-10-04
Posts: 14

Re: Removing base group packages ok?

I removed a few packages from the base group.

Just basic things like, support for FS that i dont use like reiserfs and dhcpcd (dont remove that if you actually need dhcp)

If you check out the package page and list the base repository, you can go trough the descriptions and see if there is stuff there that you dont use. Thats how i did it.

Kiro.

Offline

#6 2009-10-13 09:47:43

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: Removing base group packages ok?

Allan wrote:

I have done a "pacman -Rd glibc" once.   Dan was trying to show me that the old pacman.static was not all that static....   Fun times!

Yeah Dan mentioned this several times, I never tried though.
So what happened ? Is it because pacman.static is not really static or because of something else ?
Like how can you use a shell to run pacman.static without glibc ?


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#7 2009-10-13 11:45:17

Aprz
Member
From: Newark
Registered: 2008-05-28
Posts: 277

Re: Removing base group packages ok?

shining wrote:
Allan wrote:

I have done a "pacman -Rd glibc" once.   Dan was trying to show me that the old pacman.static was not all that static....   Fun times!

Yeah Dan mentioned this several times, I never tried though.
So what happened ? Is it because pacman.static is not really static or because of something else ?
Like how can you use a shell to run pacman.static without glibc ?

I've never actually done this before and because you guys mention this, I decided to look into some GCC options and learn a little bit more about program execution, glibc, and other relevant stuff (or so I think). I quickly bumped into -static on GCC. So far my impression of this is that it if you compile with -static, it will not only compile with the code of the program, but also the library it uses (rather than dynamicly linking to to it when it's executed). So as for pacman.static and a shell, couldn't they be compiled with -static so glibc wouldn't be required when the binary is distributed? I know that the major downfall of this is that the product binary is going to be huge... I even checked this out with doing a little "hello", dynamic is 4.5K and static is 567K, huge difference... Oh well, I just quickly saw that and felt like posting it before I forget. I'll look more into since I am curious.

Offline

#8 2009-10-13 11:57:39

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

Re: Removing base group packages ok?

shining wrote:
Allan wrote:

I have done a "pacman -Rd glibc" once.   Dan was trying to show me that the old pacman.static was not all that static....   Fun times!

Yeah Dan mentioned this several times, I never tried though.
So what happened ? Is it because pacman.static is not really static or because of something else ?
Like how can you use a shell to run pacman.static without glibc ?

dash is very static so you can use that.  And pacman.static just was not as static as advertised, which is pretty much why it was removed from the pacman package.  I was mostly static though...

Offline

Board footer

Powered by FluxBB