Hi, I wonder if there's an easy way to strip down an installation to the bare minimum, e. g. the packages you get when you select "minimum installation". In Slackware, the bone-headed package manager slackpkg has a few nice options, among which 'slackpkg clean-system', which removes all third-party packages in one single operation, or 'slackpkg remove <package_group>', which does exactly that. I know CentOS has yum groupinstall/groupremove etc. but as far as I can tell, if I only have a handful of packages from a package group installed, yum grouplist lists the group as not installed, so there's not an easy way to tell. You may wonder why I want to do this. I have CentOS installed on some sandbox machines here, and I like to fiddle with different desktops and setups just for the sake of experimenting. Cheers, Niki -- Microlinux - Solutions informatiques 100% Linux et logiciels libres 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
On 2/25/2015 10:23 AM, Niki Kovacs wrote:> I wonder if there's an easy way to strip down an installation to the > bare minimum, e. g. the packages you get when you select "minimum > installation".I install from the 'minimum' ISO, and get that off the bat, then just install the packages I need with yum -- john r pierce 37N 122W somewhere on the middle of the left coast
Le 25/02/2015 19:36, John R Pierce a ?crit :> I install from the 'minimum' ISO, and get that off the bat, then just > install the packages I need with yumI do the same, but my question is: how to do that the other way around? Let's say you start from the base system, then install a couple dozen command-line utilities from cowsay to whois, then you install the "X Window System" group, a couple dozen fonts, then the WindowMaker window manager, then a handful of X applications... how do you manage from there to get back to exactly the base system you had from the start? I know this may sound a little academic, but it's for a little private experiment here. Niki -- Microlinux - Solutions informatiques 100% Linux et logiciels libres 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
On 02/26/2015 07:23 AM, Niki Kovacs wrote:> I wonder if there's an easy way to strip down an installation to the > bare minimum, e. g. the packages you get when you select "minimum > installation".I haven't tried this, but see if it works: yum shell remove * install @minimal run Peter
On Feb 25, 2015 10:00 PM, "Peter" <peter at pajamian.dhs.org> wrote:> > I haven't tried this, but see if it works: > yum shell > remove * > install @minimal > run > >I've not tried this to see the effect but don't forget in el6 there is the yum history database... yum history list will show all yum operations that have happened on the system. In principle you could do yum history rollback 1 ... That wouldn't clear up config data of course. For testing stuff VM use and templates or snapshots are essential tools. Or create a bare minimal kick start ... Doesn't take long to do a fresh install to a clean system that way.
Le 25/02/2015 23:00, Peter a ?crit :> I haven't tried this, but see if it works: > yum shell > remove * > install @minimal > runI get "Package group minimal does not exist" What now? -- Microlinux - Solutions informatiques 100% Linux et logiciels libres 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32