You are not logged in.

#1 2013-04-24 15:15:46

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Customizing 'Base' Installation

I followed the Arch Wiki last night for fun since it's the 1st time I've attempted to install since they've removed the installer framework menu.  So I got to this section where I begin to install the 'base' package group on my new system:

pacstrap -i /mnt base

Now I am given the option to review the 'base' package group and select entries from 1-52 or... I can just select the entire 'base' group package defaults. The deal is there's a bunch of stuff in the 'base' install group I would like to omit for example (nano, mail-x, sed, etc etc etc)

Is there an easy way to omit packages I don't want? I mean beyond typing: 1 2 3 4 7 8 9 10 11 13 14 15...?

Also, when I am advised the following:

# echo myhostname > /etc/hostname

Should I be using just the system's unique hostname or should I be adding the entire FQDN there: myhostname.mydomain.tld?


./

Offline

#2 2013-04-24 15:21:10

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Customizing 'Base' Installation

1. There is only the option for selectig the packages.
2.You can have any hostname you want.


LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2013-04-24 16:39:35

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,060
Website

Re: Customizing 'Base' Installation

Carlwill wrote:

The deal is there's a bunch of stuff in the 'base' install group I would like to omit for example (nano, mail-x, sed, etc etc etc)

Is there an easy way to omit packages I don't want? I mean beyond typing: 1 2 3 4 7 8 9 10 11 13 14 15...?

Do not omit packages from the base group. Removing 'sed' as you said will break things. Without this warning i assume you would have removed other crucial packages, too.

Last edited by teateawhy (2013-04-24 16:39:53)

Offline

#4 2013-04-24 18:47:10

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: Customizing 'Base' Installation

hadrons123 wrote:

1. There is only the option for selectig the packages.
2.You can have any hostname you want.

******thx

Last edited by Carlwill (2013-04-24 19:11:02)


./

Offline

#5 2013-04-24 18:57:20

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: Customizing 'Base' Installation

1. You will be presented options to select packages but not deselect packages. There is no pacstrap or pacman switch or options for deselecting packages.
2. You can put any name into the file /etc/hostname confined by what's given in

 man hostname

LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#6 2013-04-24 19:04:01

Raynman
Member
Registered: 2011-10-22
Posts: 1,094

Re: Customizing 'Base' Installation

Carlwill wrote:
hadrons123 wrote:

1. There is only the option for selectig the packages.
2.You can have any hostname you want.

1. Vaguest answer ever.
2. That wasn't even a question. I asked if it's simply hostname ONLY or hostname AND domain. The Wiki isn't specific.

Answer 1 is a bit vague, yes, but I think he's trying to say you can only select which ones you want to include.

You should just read man pages; the wiki is not the only or the best source of information. `man 5 hostname` says no dots, for example, and pacman's man page contains a paragraph describing the package selection (which does not agree with hadrons123's answer).

Offline

#7 2013-04-24 19:05:14

opt1mus
Member
From: UK
Registered: 2011-12-31
Posts: 197
Website

Re: Customizing 'Base' Installation

Also worth checking out;

$ hostnamectl status
$ man hostnamectl

Offline

#8 2013-04-24 19:05:28

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,734

Re: Customizing 'Base' Installation

There's nothing wrong with omitting packages from base providided you know you don't need them. I'd never omit sed though; it's a functional necessity in many shell scripts. This is in contrast to nano, mailx, pcmciautils, and mdadm, which are among those I exclude.

I don't know of any better way to do it than providing pacman with a list of all packages from base you want to install. Even that can be made easy with some shell-fu. But if you don't really know what you're doing, you should probably reconsider...


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#9 2013-04-24 19:11:41

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,052
Website

Re: Customizing 'Base' Installation

You can also just remove them after the installation is complete.  I installed base and base-devel, then removed a few including nano and mdadm.  But, it's been 'sed' before and it will be 'sed' again: don't remove sed.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#10 2013-04-24 19:13:34

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: Customizing 'Base' Installation

alphaniner wrote:

There's nothing wrong with omitting packages from base providided you know you don't need them. I'd never omit sed though; it's a functional necessity in many shell scripts. This is in contrast to nano, mailx, pcmciautils, and mdadm, which are among those I exclude.

Ugh so confusing. Those are the exact packages I want to exclude: madm, mailx, nano, pcmciautils, etc etc etc. How do you omit them? Do you simply just enter the fourty something numbers you want and leave off the few you don't?


./

Offline

#11 2013-04-24 19:16:36

graysky
Member
From: /run/user/1000
Registered: 2008-12-01
Posts: 8,614
Website

Re: Customizing 'Base' Installation

Yes... it would be nice if you could do !30 for example to pull everything BUT 30 but I don't think it works this way.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#12 2013-04-24 19:25:44

alphaniner
Member
From: Ancapistan
Registered: 2010-07-12
Posts: 2,734

Re: Customizing 'Base' Installation

Carlwill wrote:

Do you simply just enter the fourty something numbers you want and leave off the few you don't?

Yup, that's what I do. But honestly, Trilby's method is much more sensible: just let them be installed and remove them later.


But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner

Offline

#13 2013-04-24 19:48:12

Raynman
Member
Registered: 2011-10-22
Posts: 1,094

Re: Customizing 'Base' Installation

like I said: RTFM

man pacman wrote:

In addition to packages, groups can be specified as well. For example, if gnome is a defined package group, then pacman -S gnome will provide a prompt allowing you to select which packages to install from a numbered list. The package selection is specified using a space and/or comma separated list of package numbers. Sequential packages may be selected by specifying the first and last package numbers separated by a hyphen (-). Excluding packages is achieved by prefixing a number or range of numbers with a caret (^).

Offline

#14 2013-04-24 20:09:09

Carlwill
Member
From: Orlando, FL
Registered: 2008-10-06
Posts: 560
Website

Re: Customizing 'Base' Installation

alphaniner wrote:
Carlwill wrote:

Do you simply just enter the fourty something numbers you want and leave off the few you don't?

Yup, that's what I do. But honestly, Trilby's method is much more sensible: just let them be installed and remove them later.

Thanks all. I will give it another shot. I for some reason cringe at the thought of installing useless packages only to be removed post install. Chances are there are always traces left of junk we remove. I want my fresh install to be exactly that...fresh.

I'll give it another go and only omit stuff I know I don't need / want.


./

Offline

#15 2013-04-24 20:21:42

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,052
Website

Re: Customizing 'Base' Installation

Carlwill wrote:

Chances are there are always traces left of junk we remove.

That sounds like some traces of PTSD left from using that other operating system - or even perhaps other distros without quality package managers - but we have pacman.

If the packages are remove right after the installation, there will be absolutely nothing left.  If they're removed after the first "Syu" after the installation, then the package may remain in the cache, but you could clear this too, then there would be absolutely nothing left.

The only way they'd leave anything behind in your root file system is if you modified their configuration files.  The only way they could leave anything in your home partition is if you ran the associated program.

Last edited by Trilby (2013-04-24 20:22:10)


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

#16 2013-04-25 21:01:10

Arogers10
Member
Registered: 2012-06-20
Posts: 68

Re: Customizing 'Base' Installation

The simplest way, I think, and the way I do it when I am installing something myself (such as gnome) is to do

 1-4 6-8 12-52

especially if you only have a few things to omit.

Offline

#17 2013-04-25 22:53:20

mhertz
Member
From: Denmark
Registered: 2010-06-19
Posts: 664

Re: Customizing 'Base' Installation

Another solution:

pacstrap -i /mnt base{,-devel} --ignore nano,mailx,pcmciautils,mdadm

The '--ignore' flag is just sent unmodified to pacman by pacstrap...

You need the '-i' flag of pacstrap to disable it adding '--noconfirm' to the generated pacman command-line, since pacman will ask "foo is in ignorepkg, install anyway? [Y/n]" and which defaults to "Y"...

Last edited by mhertz (2013-04-25 23:14:24)

Offline

Board footer

Powered by FluxBB