Johnny Hughes
2016-May-06 16:31 UTC
[CentOS] Reduce existing CentOS 7 installation to "Minimal install" - services?
On 05/06/2016 11:18 AM, Nicolas Kovacs wrote:> Le 06/05/2016 13:50, Johnny Hughes a ?crit : >> Maybe add a: >> >> yum groupinstall core > > That did add a handful of packages indeed (as was already suggested in > the previous answer), but the problem still persists. > > After rebooting, the system hangs after mounting the /boot partition and > then exits into emergency mode. > > I'm puzzled. >There actually are a couple more things than core in a minimal install .. here is the current minimal list: https://git.centos.org/blob/sig-core!comps.git/220ef7b59c95531d3752d4074ce673aa09792c67/c7-minimal-x86_64-RPMS.lst some of those might not get installed every time (ie, disk encrypt may not be on non-encrypted drives, etc.) But it is a good starting point. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 198 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20160506/c32c7747/attachment-0001.sig>
Nicolas Kovacs
2016-May-07 11:16 UTC
[CentOS] Reduce existing CentOS 7 installation to "Minimal install" - services?
Le 06/05/2016 18:31, Johnny Hughes a ?crit :> There actually are a couple more things than core in a minimal install > .. here is the current minimal list: > > https://git.centos.org/blob/sig-core!comps.git/220ef7b59c95531d3752d4074ce673aa09792c67/c7-minimal-x86_64-RPMS.lst > > some of those might not get installed every time (ie, disk encrypt may > not be on non-encrypted drives, etc.) > > But it is a good starting point.After some more trial and error, I managed to resolve the problem in a pragmatic way by doing the following after purging the system: # yum groupinstall "Core" # yum groupinstall "Base" So the missing culprit(s) must have been somewhere in the "Base" package group, or at least a dependency to one or more of its packages. Cheers, Niki -- Microlinux - Solutions informatiques durables 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
Peter
2016-May-07 12:57 UTC
[CentOS] Reduce existing CentOS 7 installation to "Minimal install" - services?
On 07/05/16 23:16, Nicolas Kovacs wrote:> After some more trial and error, I managed to resolve the problem in a > pragmatic way by doing the following after purging the system: > > # yum groupinstall "Core" > # yum groupinstall "Base" > > So the missing culprit(s) must have been somewhere in the "Base" package > group, or at least a dependency to one or more of its packages.Rather than remove them and add them back use yum shell to just remove the packages not in base or core: yum shell remove * install kernel @core @base run quit Peter
Nicolas Kovacs
2016-May-11 19:08 UTC
[CentOS] Reduce existing CentOS 7 installation to "Minimal install" - services?
Le 06/05/2016 18:31, Johnny Hughes a ?crit :> There actually are a couple more things than core in a minimal install > .. here is the current minimal list: > > https://git.centos.org/blob/sig-core!comps.git/220ef7b59c95531d3752d4074ce673aa09792c67/c7-minimal-x86_64-RPMS.lst > > some of those might not get installed every time (ie, disk encrypt may > not be on non-encrypted drives, etc.) > > But it is a good starting point.After some more fiddling, my problem is solved. Here's my little script: https://github.com/kikinovak/centos/blob/master/7.x/scripts/00-elaguer-paquets.sh Any existing CentOS installation (GNOME, KDE, Web Server, etc.) can be stripped down to a minimal install by simply running it. I've tried this with different scenarios, and it works perfectly. Thank you everybody for your input. Niki -- Microlinux - Solutions informatiques durables 7, place de l'?glise - 30730 Montpezat Web : http://www.microlinux.fr Mail : info at microlinux.fr T?l. : 04 66 63 10 32
Fred Smith
2016-May-11 21:49 UTC
[CentOS] Reduce existing CentOS 7 installation to "Minimal install" - services?
On Wed, May 11, 2016 at 09:08:03PM +0200, Nicolas Kovacs wrote:> Le 06/05/2016 18:31, Johnny Hughes a ?crit : > > There actually are a couple more things than core in a minimal install > > .. here is the current minimal list: > > > > https://git.centos.org/blob/sig-core!comps.git/220ef7b59c95531d3752d4074ce673aa09792c67/c7-minimal-x86_64-RPMS.lst > > > > some of those might not get installed every time (ie, disk encrypt may > > not be on non-encrypted drives, etc.) > > > > But it is a good starting point. > > After some more fiddling, my problem is solved. Here's my little script: > > https://github.com/kikinovak/centos/blob/master/7.x/scripts/00-elaguer-paquets.sh > > Any existing CentOS installation (GNOME, KDE, Web Server, etc.) can be > stripped down to a minimal install by simply running it. I've tried this > with different scenarios, and it works perfectly. > > Thank you everybody for your input. > > Nikinot that I'm wanting to strip down my C7, I'm wondering how that works if one has installed the Mate desktop from epel ? -- ---- Fred Smith -- fredex at fcshome.stoneham.ma.us ----------------------------- God made him who had no sin to be sin for us, so that in him we might become the righteousness of God." --------------------------- Corinthians 5:21 ---------------------------------
Reasonably Related Threads
- Reduce existing CentOS 7 installation to "Minimal install" - services?
- Reduce existing CentOS 7 installation to "Minimal install" - services?
- Reduce existing CentOS 7 installation to "Minimal install" - services?
- Going back to a minimal system : strange problem
- Reduce existing CentOS 7 installation to "Minimal install" - services?