help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: package-autoremove ?


From: David Masterson
Subject: Re: package-autoremove ?
Date: Thu, 24 Aug 2023 21:52:23 -0700
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

Rudolf Schlatte <rudi@constantly.at> writes:

> David Masterson <dsmasterson@gmail.com> writes:
>
>> Can someone describe the process that package-autoremove goes through to
>> create the list of packages that are "safe" to be removed?  When I use
>> it, I see a few packages that I have connected to other packages
>> (ex. 'diminish being used by 'use-package).  Is there anything I should
>> do to signal to package-autoremove that I know a package is needed?
>
> You can add these packages to `package-selected-packages'.  `M-x
> list-packages' will show such packages as "dependency" instead of
> "installed"; typing "i" then "x" on the line of a dependency package
> (i.e., trying to install the package) will add it to
> `package-selected-packages' as well.
>
> For me, this situation comes up when I install a package via
> `(use-package ... :ensure t)' instead of via `list-packages'.

Sounds like a good possibility for me as well.  Someone should adjust
use-package to add the package to package-selected-packages for this
reason.  My Lisp isn't that good.

-- 
David Masterson



reply via email to

[Prev in Thread] Current Thread [Next in Thread]