Re: [CentOS] Minimising a CentOS installation

2021-08-21 Thread Steven Rosenberg
On Sat, 2021-08-21 at 20:24 +0200, Leon Fauster via CentOS wrote:

> > https://linuxconfig.org/how-to-remove-orphaned-packages-on-centos-linux
> > 
> > It worked for me:
> > 
> > Get a list of orphaned packages:
> > 
> > $ package-cleanup --leaves
> > 
> > Remove them:
> > 
> > # yum remove `package-cleanup --leaves`
> > 
> > That's only if you're OK removing all of them.
> > 
> 
> Not sure why but at least on two C8S systems (not all)
> the kernel rpms are listed as leaves, also the running one.
> So, better don't execute the above command ...
> 
> Investigating why other C8S systems do not show the kernel
> rpms ...

I'm on C8S, and my package-cleanup --leaves is now clear.


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


Re: [CentOS] Minimising a CentOS installation

2021-08-21 Thread Leon Fauster via CentOS

On 21.08.21 19:02, Steven Rosenberg wrote:

On Fri, 2021-08-20 at 22:10 -0600, James Szinger wrote:


My typical approach is to run `package-cleanup --leaves --all` or
`yum
leaves` (might need software not on CentOS 8) and justify everything
that is there.  I have about 85 leaf packages on a CentOS 7 web
server, so a minimal package set should be smaller.  Experiment with
a
disposable VM so it is easy to recover from mistakes.


Thanks for this. I did a little searching and found this page:


https://linuxconfig.org/how-to-remove-orphaned-packages-on-centos-linux

It worked for me:

Get a list of orphaned packages:

$ package-cleanup --leaves

Remove them:

# yum remove `package-cleanup --leaves`

That's only if you're OK removing all of them.




Not sure why but at least on two C8S systems (not all)
the kernel rpms are listed as leaves, also the running one.
So, better don't execute the above command ...

Investigating why other C8S systems do not show the kernel
rpms ...

--
Leon
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Minimising a CentOS installation

2021-08-21 Thread Steven Rosenberg
On Fri, 2021-08-20 at 22:10 -0600, James Szinger wrote:

> My typical approach is to run `package-cleanup --leaves --all` or
> `yum
> leaves` (might need software not on CentOS 8) and justify everything
> that is there.  I have about 85 leaf packages on a CentOS 7 web
> server, so a minimal package set should be smaller.  Experiment with
> a
> disposable VM so it is easy to recover from mistakes.

Thanks for this. I did a little searching and found this page:


https://linuxconfig.org/how-to-remove-orphaned-packages-on-centos-linux

It worked for me:

Get a list of orphaned packages:

$ package-cleanup --leaves

Remove them:

# yum remove `package-cleanup --leaves`

That's only if you're OK removing all of them.

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


Re: [CentOS] Minimising a CentOS installation

2021-08-20 Thread James Szinger
On Fri, 20 Aug 2021 11:17:11 -0400
Stephen John Smoogen  wrote:

> On Fri, 20 Aug 2021 at 10:25, Anand Buddhdev  wrote:
> >
> > Hi folks,
> >
> > After doing a minimal CentOS 8.4 installation, I found the following
> > packages to be useful for a simple server, so I removed them:
> >
> > cronie-anacron (replaced with cronie-noanacron)
> > alsa-firmware
> > ivtv-firmware
> > iwl*-firmware
> > sssd-common (along with all packages that depended on it)
> >
> > What other things do folk usually remove to make their installation
> > smaller? 
> 
> Usually it breaks down at this point because everyone has different
> things they want for their minimal install. Getting 3 people to agree
> on a minimal working set seems to be harder than doing a three body
> physics problem :).

Exactly.  To me a minimal install has just enough to run sshd, an
editor*, and yum.  It’s not very useful, so then I add diagnostics,
logging and management software, and it is no longer minimal.

My typical approach is to run `package-cleanup --leaves --all` or `yum
leaves` (might need software not on CentOS 8) and justify everything
that is there.  I have about 85 leaf packages on a CentOS 7 web
server, so a minimal package set should be smaller.  Experiment with a
disposable VM so it is easy to recover from mistakes.

Jim

* vi, or emacs, or ...
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Minimising a CentOS installation

2021-08-20 Thread Anand Buddhdev
On 21/08/2021 01:34, Warren Young wrote:

> Our post-install removal command here is:
> 
> dnf -y remove cockpit* pcp*

These aren't present in a minimal CentOS 8 installation.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Minimising a CentOS installation

2021-08-20 Thread Warren Young
On Aug 20, 2021, at 8:24 AM, Anand Buddhdev  wrote:
> What other things do folk usually remove to make their installation smaller?

Our post-install removal command here is:

dnf -y remove cockpit* pcp*

But we’re old-school Unix geeks, so there you go. :)
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Minimising a CentOS installation

2021-08-20 Thread Stephen John Smoogen
On Fri, 20 Aug 2021 at 10:25, Anand Buddhdev  wrote:
>
> Hi folks,
>
> After doing a minimal CentOS 8.4 installation, I found the following
> packages to be useful for a simple server, so I removed them:
>
> cronie-anacron (replaced with cronie-noanacron)
> alsa-firmware
> ivtv-firmware
> iwl*-firmware
> sssd-common (along with all packages that depended on it)
>
> What other things do folk usually remove to make their installation smaller?
>

Usually it breaks down at this point because everyone has different
things they want for their minimal install. Getting 3 people to agree
on a minimal working set seems to be harder than doing a three body
physics problem :).



-- 
Stephen J Smoogen.
I've seen things you people wouldn't believe. Flame wars in
sci.astro.orion. I have seen SPAM filters overload because of Godwin's
Law. All those moments will be lost in time... like posts on  BBS...
time to reboot.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos