unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Masterson <dsmasterson@gmail.com>
To: Rudolf Schlatte <rudi@constantly.at>
Cc: help-gnu-emacs@gnu.org
Subject: Re: package-autoremove ?
Date: Thu, 24 Aug 2023 21:52:23 -0700	[thread overview]
Message-ID: <LV8P223MB09201083273BF41290080E3AA2E3A@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <m28ra31dbr.fsf@eduroam-193-157-213-113.wlan.uio.no> (Rudolf Schlatte's message of "Tue, 22 Aug 2023 14:17:12 +0200")

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	other threads:[~2023-08-25  4:52 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-22  4:00 package-autoremove ? David Masterson
2023-08-22 12:17 ` Rudolf Schlatte
2023-08-25  4:52   ` David Masterson [this message]
2023-08-25  7:38     ` Philip Kaludercic
2023-08-25  8:40       ` Tassilo Horn
2023-08-25  8:54         ` Philip Kaludercic
2023-08-25  8:56           ` Tassilo Horn
2023-08-25 12:58             ` Tassilo Horn
2023-08-26  2:01               ` David Masterson
2023-08-26  1:50       ` David Masterson
2023-08-26 12:03         ` Philip Kaludercic
  -- strict thread matches above, loose matches on Subject: below --
2020-09-03  4:35 David Masterson
2020-09-03  6:38 ` Pankaj Jangid

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=LV8P223MB09201083273BF41290080E3AA2E3A@LV8P223MB0920.NAMP223.PROD.OUTLOOK.COM \
    --to=dsmasterson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rudi@constantly.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).