Re: [CentOS] setting up bare minimal CentOS VM

2011-08-10 Thread Leonard den Ottolander
Hello Rudi,

On Wed, 2011-08-10 at 00:17 +0200, Rudi Ahlers wrote:
 Well, I setup CentOS 6 using the netinstall ISO, but want to know if
 there are still packages which I don't need and can remove

Do a minimal install then
# rpm -qa | sort
or
# cat /var/log/rpmpkgs
then
# rpm -e unwanted package

rpm -e will not remove any package that has dependencies on it.

But you better add the extra packages you need (f.e. things like mc and
system-config*) before you start pruning, as they might pull back in a
lot of the stuff you might think about taking out (most notably perl). 

Regards,
Leonard.

-- 
mount -t life -o ro /dev/dna /genetic/research


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-10 Thread John R. Dennison
On Wed, Aug 10, 2011 at 08:32:40AM +0200, Leonard den Ottolander wrote:
 
 rpm -e will not remove any package that has dependencies on it.

Along similar lines there is this short shell script put together by
Mike Harris.  This will go through all installed rpms and list which may
be removable based on outstanding dependencies.  In order to make full
use of this script you should run it after every package removal as
dependencies will change.  Using this, or similar concepts, it's
possible to get an extremely small base system installed by using the
remaining package set in a kickstart install.

#!/bin/sh

#
## this script originated from a one-liner posted to #centos-social
## by Mike Harris; mharris on irc.freenode.net.  Script used with
## permission.
#

for each in $(rpm -qa |sort)
do
echo $(rpm -e --test $each  /dev/null  echo YES || echo 'NO '): 
$each
done

-- 
Here's what I do know.  I don't care.  I'm sick of it.  I'm sick of needy,
crazy, stupid liars.  Seriously, I can't take it anymore.  I grew up with
them, I live with them, I work with them.  And no matter how fast I run
or how far I go they breed and come after me.  It's like a zombie movie
except the only scary part is it never ends.

-- 13 seconds of dialogue from Mary McCormack as Mary Shannon in USA's
   In Plain Sight


pgpLIwlomg2Uv.pgp
Description: PGP signature
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-10 Thread Tom Diehl
On Tue, 9 Aug 2011, Craig White wrote:


 On Aug 9, 2011, at 3:40 PM, John R Pierce wrote:

 On 08/09/11 3:10 PM, Rudi Ahlers wrote:
 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?

 rpm -qa

 (after doing that minimal install)

 really isn't neccessary is highly subjective, noone else can make that
 call for you.
 
 sheesh...

 after doing that minimal install, you have a complete kickstart script
 written for you already...

 /root/anaconda-ks.cfg

 I can't believe that no one actually picked up on that

In C6 this is very broken!! It is not useful. Sometimes it shows the packages
that were installed and most of the time it does not. In addition, it does not
even get the disk layout right. If I take what is in anaconda-ks.cfg and paste
it into a kickstart file. It blows chunks. Sometimes I can figure out what is
wrong but other times I cannot get it to work. I fought with a software raid 1
setup yesterday and never did get it to work.

At some point I need to file a bug wrt this but I have not taken the time to
do it yet.

Regards,

-- 
Tom Diehl   tdi...@rogueind.com  Spamtrap address mtd...@rogueind.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-10 Thread Tom Diehl
On Tue, 9 Aug 2011, John R Pierce wrote:

 On 08/09/11 4:02 PM, Craig White wrote:
 you have a complete kickstart script written for you already...

 /root/anaconda-ks.cfg

 speaking of kickstart...   I may need to setup a portable kickstart
 server for CentOS 6 , and I've never really messed with it...  how do
 you supply the ks.cfg file when you're PXE booting and have no CD or floppy?

 is there a good how-to on setting up kickstart servers for EL6 ?

 redhat can't be serious when they say...

 http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-netboot-pxe-config.html

30.2. PXE Boot Configuration

The next step is to copy the files necessary to start the
installation to the tftp server so they can be found when the client
requests them. The tftp server is usually the same server as the
network server exporting the installation tree.

(end of section)


 like, *WHAT* files??   does anyone PROOF READ this stuff ?!?  (yeah, I
 know, this is upstream's problem, not CentOS...)

You might want to look at https://fedorahosted.org/cobbler/

Regards,

-- 
Tom Diehl   tdi...@rogueind.com  Spamtrap address mtd...@rogueind.com
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-10 Thread Scot P. Floess

+1

I use Cobbler/KOAN all the time...  And setting up a bare bones VM - super 
trivial...

On Wed, 10 Aug 2011, Tom Diehl wrote:

 On Tue, 9 Aug 2011, John R Pierce wrote:

 On 08/09/11 4:02 PM, Craig White wrote:
 you have a complete kickstart script written for you already...

 /root/anaconda-ks.cfg

 speaking of kickstart...   I may need to setup a portable kickstart
 server for CentOS 6 , and I've never really messed with it...  how do
 you supply the ks.cfg file when you're PXE booting and have no CD or floppy?

 is there a good how-to on setting up kickstart servers for EL6 ?

 redhat can't be serious when they say...

 http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-netboot-pxe-config.html

30.2. PXE Boot Configuration

The next step is to copy the files necessary to start the
installation to the tftp server so they can be found when the client
requests them. The tftp server is usually the same server as the
network server exporting the installation tree.

(end of section)


 like, *WHAT* files??   does anyone PROOF READ this stuff ?!?  (yeah, I
 know, this is upstream's problem, not CentOS...)

 You might want to look at https://fedorahosted.org/cobbler/

 Regards,

 -- 
 Tom Diehl   tdi...@rogueind.com  Spamtrap address mtd...@rogueind.com
 ___
 CentOS mailing list
 CentOS@centos.org
 http://lists.centos.org/mailman/listinfo/centos


Scot P. Floess RHCT  (Certificate Number 605010084735240)
Chief Architect FlossWare  http://sourceforge.net/projects/flossware
http://flossware.sourceforge.net
https://github.com/organizations/FlossWare
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-10 Thread John Doe
From: Rudi Ahlers r...@softdux.com

 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?

Maybe try something like:
  grep 'id\|mandatory\|default' /PATH/TO/REPO/6/os/x86_64/repodata/*comps.xml 
| sed 's/[a-z/]*//g; s/packagereq type=//g' | tr '' ' '

JD
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Rudi Ahlers
Hi all,

I need to setup a real bare minimum CentOS Virtual Machine, but with
normal internet / network access. i.e. I need SSH, Mutt, Links, lynx,
ping, tracert, dig, iptables, etc.

Does anyone know where (if?) I can get a list of applications which
gets installed with CentOS 6 if every option is deselected in the
installer so that I can see what I can remove which isn't really
necessary once installed?



-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Scott Silva
on 8/9/2011 3:10 PM Rudi Ahlers spake the following:
 Hi all,

 I need to setup a real bare minimum CentOS Virtual Machine, but with
 normal internet / network access. i.e. I need SSH, Mutt, Links, lynx,
 ping, tracert, dig, iptables, etc.

 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?



I think they are creating a minimal install CD image, if they haven't already 
released it.

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Rudi Ahlers
On Wed, Aug 10, 2011 at 12:16 AM, Scott Silva ssi...@sgvwater.com wrote:
 on 8/9/2011 3:10 PM Rudi Ahlers spake the following:
 Hi all,

 I need to setup a real bare minimum CentOS Virtual Machine, but with
 normal internet / network access. i.e. I need SSH, Mutt, Links, lynx,
 ping, tracert, dig, iptables, etc.

 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?



 I think they are creating a minimal install CD image, if they haven't already
 released it.

 ___


Well, I setup CentOS 6 using the netinstall ISO, but want to know if
there are still packages which I don't need and can remove


-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Craig White

On Aug 9, 2011, at 3:10 PM, Rudi Ahlers wrote:

 Hi all,
 
 I need to setup a real bare minimum CentOS Virtual Machine, but with
 normal internet / network access. i.e. I need SSH, Mutt, Links, lynx,
 ping, tracert, dig, iptables, etc.
 
 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?

do you mean as in /root/anaconda-ks.cfg ?

Craig
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Rudi Ahlers
On Wed, Aug 10, 2011 at 12:23 AM, Craig White craig.wh...@ttiltd.com wrote:

 On Aug 9, 2011, at 3:10 PM, Rudi Ahlers wrote:

 Hi all,

 I need to setup a real bare minimum CentOS Virtual Machine, but with
 normal internet / network access. i.e. I need SSH, Mutt, Links, lynx,
 ping, tracert, dig, iptables, etc.

 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?
 
 do you mean as in /root/anaconda-ks.cfg ?

 Craig
 ___



Craig, yes, and no. I am actually looking for a list of software
packages that can be removed without breaking the running OS. like for
example bluez-libs or cronie-anacron which isn't necessarily needed
for a bare-minimum system to run.

I honestly don't just want to delete stuff that I don't know if it
could break something, so I was hoping maybe someone knows of a list
(on a wiki / blog / etc) that has a really bare minimum list of
software that needs to be on a server to function.

I could install anything else later on if I need to though.


-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread John R Pierce
On 08/09/11 3:10 PM, Rudi Ahlers wrote:
 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?

rpm -qa

(after doing that minimal install)

really isn't neccessary is highly subjective, noone else can make that 
call for you.

-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Scott Silva
snip


 Craig, yes, and no. I am actually looking for a list of software
 packages that can be removed without breaking the running OS. like for
 example bluez-libs or cronie-anacron which isn't necessarily needed
 for a bare-minimum system to run.

 I honestly don't just want to delete stuff that I don't know if it
 could break something, so I was hoping maybe someone knows of a list
 (on a wiki / blog / etc) that has a really bare minimum list of
 software that needs to be on a server to function.

 I could install anything else later on if I need to though.



I really think the minimal CD would be about as lean as you would want to go. 
You could maybe trim a few megs, but is it worth the extra work?

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Rudi Ahlers
On Wed, Aug 10, 2011 at 12:41 AM, Scott Silva ssi...@sgvwater.com wrote:
 snip


 Craig, yes, and no. I am actually looking for a list of software
 packages that can be removed without breaking the running OS. like for
 example bluez-libs or cronie-anacron which isn't necessarily needed
 for a bare-minimum system to run.

 I honestly don't just want to delete stuff that I don't know if it
 could break something, so I was hoping maybe someone knows of a list
 (on a wiki / blog / etc) that has a really bare minimum list of
 software that needs to be on a server to function.

 I could install anything else later on if I need to though.



 I really think the minimal CD would be about as lean as you would want to go.
 You could maybe trim a few megs, but is it worth the extra work?

 ___



Hi Scott,

I didn't know about the minimal CD until now.

And it's not really about trimming a few extra megs, but rather
about removing, and disabling services which users generally won't use
but gets installed and often cause security issues down the road cause
it was never disabled



-- 
Kind Regards
Rudi Ahlers
SoftDux

Website: http://www.SoftDux.com
Technical Blog: http://Blog.SoftDux.com
Office: 087 805 9573
Cell: 082 554 7532
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Craig White

On Aug 9, 2011, at 3:40 PM, John R Pierce wrote:

 On 08/09/11 3:10 PM, Rudi Ahlers wrote:
 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?
 
 rpm -qa
 
 (after doing that minimal install)
 
 really isn't neccessary is highly subjective, noone else can make that 
 call for you.

sheesh...

after doing that minimal install, you have a complete kickstart script written 
for you already...

/root/anaconda-ks.cfg

I can't believe that no one actually picked up on that

Craig
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread John R Pierce
On 08/09/11 4:02 PM, Craig White wrote:
 you have a complete kickstart script written for you already...

 /root/anaconda-ks.cfg

speaking of kickstart...   I may need to setup a portable kickstart 
server for CentOS 6 , and I've never really messed with it...  how do 
you supply the ks.cfg file when you're PXE booting and have no CD or floppy?

is there a good how-to on setting up kickstart servers for EL6 ?

redhat can't be serious when they say...

http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-netboot-pxe-config.html

30.2. PXE Boot Configuration

The next step is to copy the files necessary to start the
installation to the tftp server so they can be found when the client
requests them. The tftp server is usually the same server as the
network server exporting the installation tree.

(end of section)


like, *WHAT* files??   does anyone PROOF READ this stuff ?!?  (yeah, I 
know, this is upstream's problem, not CentOS...)




-- 
john r pierceN 37, W 122
santa cruz ca mid-left coast

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Tom H
On Tue, Aug 9, 2011 at 6:10 PM, Rudi Ahlers r...@softdux.com wrote:

 I need to setup a real bare minimum CentOS Virtual Machine, but with
 normal internet / network access. i.e. I need SSH, Mutt, Links, lynx,
 ping, tracert, dig, iptables, etc.

 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?

Kickstart minimal:
either
%packages --nobase
@Core
or
%packages
@Base

I'm not sure what's installed when you don't select anything in
Anaconda but if you have such an install you can compare the output of
rpm -qa with yum groupinfo Core and yum groupinfo Base.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread Tom H
On Tue, Aug 9, 2011 at 7:33 PM, Tom H tomh0...@gmail.com wrote:
 On Tue, Aug 9, 2011 at 6:10 PM, Rudi Ahlers r...@softdux.com wrote:

 I need to setup a real bare minimum CentOS Virtual Machine, but with
 normal internet / network access. i.e. I need SSH, Mutt, Links, lynx,
 ping, tracert, dig, iptables, etc.

 Does anyone know where (if?) I can get a list of applications which
 gets installed with CentOS 6 if every option is deselected in the
 installer so that I can see what I can remove which isn't really
 necessary once installed?

 Kickstart minimal:
 either
 %packages --nobase
 @Core
 or
 %packages
 @Base

 I'm not sure what's installed when you don't select anything in
 Anaconda but if you have such an install you can compare the output of
 rpm -qa with yum groupinfo Core and yum groupinfo Base.

Oops. I've just checked yum groupinfo ... and it doesn't list all
packages installed by Core and Base (about 200 and 400 packages
respectively). I presume that dependencies aren't included in
groups...
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] setting up bare minimal CentOS VM

2011-08-09 Thread R P Herrold
On Tue, 9 Aug 2011, John R Pierce wrote:

  how do you supply the ks.cfg file when you're PXE booting 
 and have no CD or floppy?

ummm ... with DHCP, handing out the correct boot vmlinuz image 
under PXE for the MAC address in question, and kernel command 
line arguments, one of which is the location of the ks.cfg, 
and of the initrd, usually through a 'next' server [being a 
'next' server, because it provides the next needed 
information] again through the TFTPD, DHCPD and (usually) FTPD 
or HTTPD

It has not changed for years, and in all honesty, as much of 
what is happening is burned into 'state machines, inside of 
boot roms on network interfaces, it will NEVER change 
substantially.  See, HPA's work with SYSLINUX

It is fully tested by me under CentOS 6, as part of my install 
testing -- so-called wire installs are how I always install

 is there a good how-to on setting up kickstart servers for EL6 ?

We installed perhaps ten units that way today under C6

I've pretty well covered everything that can go wrong in such 
a process, starting a decade ago

http://www.owlriver.com/tips/pxe-install/
http://www.owlriver.com/tips/hands-off/
http://www.owlriver.com/tips/tftp-xinetd/
http://www.owlriver.com/tips/centos-upgradeany/
http://www.owlriver.com/tips/tiny-centos/
http://www.owlriver.com/tips/minimal-installer/

http://www.shabazian.com/lw2007.pdf (Chip Shabazian)

and of course the LTSP (Jim McQuillan) and K12LTSP (gone dark, 
and owned by a domain squatter, now-a-days) projects' work in 
Linux space

 redhat can't be serious when they say...

 http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-netboot-pxe-config.html

 like, *WHAT* files??   does anyone PROOF READ this stuff ?!?  (yeah, I
 know, this is upstream's problem, not CentOS...)

There are no typos that I see there

All the pointers you need to get started are in that 
paragraph.  All URL's above are 'primary sources' and orininal 
content on how to do it

-- Russ herrold
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos