public inbox for discuss@lists.illumos.org (since 2011-08)
 help / color / mirror / Atom feed
* [discuss] remove unused packages
@ 2025-01-29 13:27 Enrico Weigelt, metux IT consult
  2025-01-29 13:28 ` Marcel Telka
  0 siblings, 1 reply; 11+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2025-01-29 13:27 UTC (permalink / raw)
  To: illumos-discuss

Hi folks,


after an upgrade, I've got lots of packages that seem not necessary
anymore (eg. different versions of perl modules)

Is there an easy way to purge all unused packages ?

thx
--mtx

--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@metux.net -- +49-151-27565287


------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-M3ec30853d049989d4a6ea1c0
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-29 13:27 [discuss] remove unused packages Enrico Weigelt, metux IT consult
@ 2025-01-29 13:28 ` Marcel Telka
  2025-01-29 13:40   ` Enrico Weigelt, metux IT consult
  0 siblings, 1 reply; 11+ messages in thread
From: Marcel Telka @ 2025-01-29 13:28 UTC (permalink / raw)
  To: illumos-discuss

On Wed, Jan 29, 2025 at 02:27:11PM +0100, Enrico Weigelt, metux IT consult wrote:
> after an upgrade, I've got lots of packages that seem not necessary
> anymore (eg. different versions of perl modules)
> 
> Is there an easy way to purge all unused packages ?

It depends on your definition of "unused" :-).

-- 
+-------------------------------------------+
| Marcel Telka   e-mail:   marcel@telka.sk  |
|                homepage: http://telka.sk/ |
+-------------------------------------------+

------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-Ma0473188a852f2bbd2fdb8ed
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-29 13:28 ` Marcel Telka
@ 2025-01-29 13:40   ` Enrico Weigelt, metux IT consult
  2025-01-29 14:14     ` Marcel Telka
  0 siblings, 1 reply; 11+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2025-01-29 13:40 UTC (permalink / raw)
  To: illumos-discuss

[-- Attachment #1: Type: text/plain, Size: 301 bytes --]

anything not required to boot and have ssh running :)
------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-M7c84564da123dadb698e8c81
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

[-- Attachment #2: Type: text/html, Size: 799 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-29 13:40   ` Enrico Weigelt, metux IT consult
@ 2025-01-29 14:14     ` Marcel Telka
  2025-01-29 14:31       ` Enrico Weigelt, metux IT consult
  0 siblings, 1 reply; 11+ messages in thread
From: Marcel Telka @ 2025-01-29 14:14 UTC (permalink / raw)
  To: illumos-discuss

On Wed, Jan 29, 2025 at 08:40:40AM -0500, Enrico Weigelt, metux IT consult wrote:
> anything not required to boot and have ssh running :)

You can try to play with `pkgtree no-dependants` to get the list of
unneeded pacakges and then feed this list to `pkg uninstall` (once
reviewed).  You should do that repeatedly until the `pkgtree
no-dependants` output is empty or contains only those packages you need.

Then there might be some dependency cycles that you would want to remove
too.  But you would need to find those manually, I assume.  For example,
library/perl-5/date-calc-540 needs library/perl-5/date-calc-xs-540 and
library/perl-5/date-calc-xs-540 needs library/perl-5/date-calc-540.


HTH.

-- 
+-------------------------------------------+
| Marcel Telka   e-mail:   marcel@telka.sk  |
|                homepage: http://telka.sk/ |
+-------------------------------------------+

------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-M4b3babf67389cbc74e6ae088
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-29 14:14     ` Marcel Telka
@ 2025-01-29 14:31       ` Enrico Weigelt, metux IT consult
  2025-01-29 14:46         ` Marcel Telka
  2025-01-30 17:11         ` Christoph Binner via illumos-discuss
  0 siblings, 2 replies; 11+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2025-01-29 14:31 UTC (permalink / raw)
  To: illumos-discuss, Marcel Telka

On 29.01.25 15:14, Marcel Telka wrote:

> You can try to play with `pkgtree no-dependants` to get the list of
> unneeded pacakges and then feed this list to `pkg uninstall` (once
> reviewed).

hmm, that's only showing me:

        pkg://openindiana.org/package/pkg

and that particular one probably should never uninstalled :o


by the way: is there any way for telling what's depending on a
particular package (recursively) ?

when I'm trying to uninstall something where somebody else depends on,
I'm only getting the direct dependants ... when adding those to the
command line, getting more, even more and more. collecting them all
step by step is a really tedious process.

Something similar to `apt-mark` and `apt-get autoremove` would be
really helpful.



--mtx


--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@metux.net -- +49-151-27565287


------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-Mb54c21b475ab984168e6e9ba
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-29 14:31       ` Enrico Weigelt, metux IT consult
@ 2025-01-29 14:46         ` Marcel Telka
  2025-01-30 17:11         ` Christoph Binner via illumos-discuss
  1 sibling, 0 replies; 11+ messages in thread
From: Marcel Telka @ 2025-01-29 14:46 UTC (permalink / raw)
  To: illumos-discuss

On Wed, Jan 29, 2025 at 03:31:35PM +0100, Enrico Weigelt, metux IT consult wrote:
> by the way: is there any way for telling what's depending on a
> particular package (recursively) ?

man pkgtree

-- 
+-------------------------------------------+
| Marcel Telka   e-mail:   marcel@telka.sk  |
|                homepage: http://telka.sk/ |
+-------------------------------------------+

------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-Mc1d11ffb1ab8eb2b8108bc2f
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-29 14:31       ` Enrico Weigelt, metux IT consult
  2025-01-29 14:46         ` Marcel Telka
@ 2025-01-30 17:11         ` Christoph Binner via illumos-discuss
  2025-01-30 18:08           ` Till Wegmueller
  1 sibling, 1 reply; 11+ messages in thread
From: Christoph Binner via illumos-discuss @ 2025-01-30 17:11 UTC (permalink / raw)
  To: discuss

Am 29.01.25 um 15:31 schrieb Enrico Weigelt, metux IT consult:
> On 29.01.25 15:14, Marcel Telka wrote:
>
>> You can try to play with `pkgtree no-dependants` to get the list of
>> unneeded pacakges and then feed this list to `pkg uninstall` (once
>> reviewed).
> 
> hmm, that's only showing me:
> 
>        pkg://openindiana.org/package/pkg
> 
> and that particular one probably should never uninstalled :o
> 
> by the way: is there any way for telling what's depending on a
> particular package (recursively) ?
> 
> when I'm trying to uninstall something where somebody else depends on,
> I'm only getting the direct dependants ... when adding those to the
> command line, getting more, even more and more. collecting them all
> step by step is a really tedious process.
> 
> Something similar to `apt-mark` and `apt-get autoremove` would be
> really helpful.
> 
> --mtx
> 
> --
> ---
> Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
> werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
> GPG/PGP-Schlüssel zu.
> ---
> Enrico Weigelt, metux IT consult
> Free software and Linux embedded engineering
> info@metux.net -- +49-151-27565287
> 

pkg(1) in OmniOS has `pkg autoremove` as well as rRmM flags to `pkg
list` and `pkg flag`.
Those give you the desired functionality, not on Openindiana, though.

------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-M6c21711ce3602a906131b030
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-30 17:11         ` Christoph Binner via illumos-discuss
@ 2025-01-30 18:08           ` Till Wegmueller
  2025-01-31 16:12             ` Enrico Weigelt, metux IT consult
  0 siblings, 1 reply; 11+ messages in thread
From: Till Wegmueller @ 2025-01-30 18:08 UTC (permalink / raw)
  To: discuss

Contributions to merge those into our pkg would be greatly appreciated 
:) Anybody with git merging knowledge that can leave the zone brands 
alone can do it :)

-Till

On 30.01.25 18:11, Christoph Binner via illumos-discuss wrote:
> Am 29.01.25 um 15:31 schrieb Enrico Weigelt, metux IT consult:
>> On 29.01.25 15:14, Marcel Telka wrote:
>>
>>> You can try to play with `pkgtree no-dependants` to get the list of
>>> unneeded pacakges and then feed this list to `pkg uninstall` (once
>>> reviewed).
>>
>> hmm, that's only showing me:
>>
>>        pkg://openindiana.org/package/pkg
>>
>> and that particular one probably should never uninstalled :o
>>
>> by the way: is there any way for telling what's depending on a
>> particular package (recursively) ?
>>
>> when I'm trying to uninstall something where somebody else depends on,
>> I'm only getting the direct dependants ... when adding those to the
>> command line, getting more, even more and more. collecting them all
>> step by step is a really tedious process.
>>
>> Something similar to `apt-mark` and `apt-get autoremove` would be
>> really helpful.
>>
>> --mtx
>>
>> -- 
>> ---
>> Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
>> werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
>> GPG/PGP-Schlüssel zu.
>> ---
>> Enrico Weigelt, metux IT consult
>> Free software and Linux embedded engineering
>> info@metux.net -- +49-151-27565287
>>
> 
> pkg(1) in OmniOS has `pkg autoremove` as well as rRmM flags to `pkg
> list` and `pkg flag`.
> Those give you the desired functionality, not on Openindiana, though.

------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-M6e6633e13662e9c51dd65c5e
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-30 18:08           ` Till Wegmueller
@ 2025-01-31 16:12             ` Enrico Weigelt, metux IT consult
  2025-01-31 16:54               ` Gary
  2025-02-01  0:06               ` Till Wegmueller
  0 siblings, 2 replies; 11+ messages in thread
From: Enrico Weigelt, metux IT consult @ 2025-01-31 16:12 UTC (permalink / raw)
  To: illumos-discuss, Till Wegmueller

On 30.01.25 19:08, Till Wegmueller wrote:
> Contributions to merge those into our pkg would be greatly
> appreciated :) Anybody with git merging knowledge that can leave the
> zone brands alone can do it :)

What kind of special git knowledge is needed here ?
I guess the core problem are monorepos ? ;-)

I'm pretty new to Solaris world, but like to have a look at it.
Where can I find the sources (both OI as well as omnios version) ?



--mtx

--
---
Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
GPG/PGP-Schlüssel zu.
---
Enrico Weigelt, metux IT consult
Free software and Linux embedded engineering
info@metux.net -- +49-151-27565287


------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-M259214bdecb9b2c7b66be4f2
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-31 16:12             ` Enrico Weigelt, metux IT consult
@ 2025-01-31 16:54               ` Gary
  2025-02-01  0:06               ` Till Wegmueller
  1 sibling, 0 replies; 11+ messages in thread
From: Gary @ 2025-01-31 16:54 UTC (permalink / raw)
  To: illumos-discuss

[-- Attachment #1: Type: text/plain, Size: 450 bytes --]

On Fri, Jan 31, 2025 at 8:10 AM Enrico Weigelt wrote:

>
> Where can I find the sources (both OI as well as omnios version) ?



https://github.com/OpenIndiana

https://github.com/omniosorg

------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-M6b639ab588b29d5ad32d17ac
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

[-- Attachment #2: Type: text/html, Size: 1396 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [discuss] remove unused packages
  2025-01-31 16:12             ` Enrico Weigelt, metux IT consult
  2025-01-31 16:54               ` Gary
@ 2025-02-01  0:06               ` Till Wegmueller
  1 sibling, 0 replies; 11+ messages in thread
From: Till Wegmueller @ 2025-02-01  0:06 UTC (permalink / raw)
  To: Enrico Weigelt, metux IT consult, illumos-discuss

In the git repos exists a directory src/brands which should diverge 
between the forks while patches should be moved from 
https://github.com/omniosorg/pkg5 into https://github.com/OpenIndiana/pkg5

A second step would be to then merge with 
https://github.com/oracle/solaris-ips so that all three IPS forks are 
one again. And can be developed collaboratively. Or at least for the 
illumos distros are the same Repo.

-Till

On 31.01.25 17:12, Enrico Weigelt, metux IT consult wrote:
> On 30.01.25 19:08, Till Wegmueller wrote:
>> Contributions to merge those into our pkg would be greatly
>> appreciated :) Anybody with git merging knowledge that can leave the
>> zone brands alone can do it :)
> 
> What kind of special git knowledge is needed here ?
> I guess the core problem are monorepos ? ;-)
> 
> I'm pretty new to Solaris world, but like to have a look at it.
> Where can I find the sources (both OI as well as omnios version) ?
> 
> 
> 
> --mtx
> 
> -- 
> ---
> Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert
> werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren
> GPG/PGP-Schlüssel zu.
> ---
> Enrico Weigelt, metux IT consult
> Free software and Linux embedded engineering
> info@metux.net -- +49-151-27565287
> 

------------------------------------------
illumos: illumos-discuss
Permalink: https://illumos.topicbox.com/groups/discuss/Taf30d1b2db20938f-M0077babc71953fbcccaf43aa
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2025-02-01  0:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-29 13:27 [discuss] remove unused packages Enrico Weigelt, metux IT consult
2025-01-29 13:28 ` Marcel Telka
2025-01-29 13:40   ` Enrico Weigelt, metux IT consult
2025-01-29 14:14     ` Marcel Telka
2025-01-29 14:31       ` Enrico Weigelt, metux IT consult
2025-01-29 14:46         ` Marcel Telka
2025-01-30 17:11         ` Christoph Binner via illumos-discuss
2025-01-30 18:08           ` Till Wegmueller
2025-01-31 16:12             ` Enrico Weigelt, metux IT consult
2025-01-31 16:54               ` Gary
2025-02-01  0:06               ` Till Wegmueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).