unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19146: 25.0.50; RFE: non-interactive package upgrade
@ 2014-11-21 19:23 Sam Steingold
  2022-05-12  1:59 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Sam Steingold @ 2014-11-21 19:23 UTC (permalink / raw)
  To: 19146

To upgrade all packages I need to do :

M-x list-packages RET
U (package-menu-mark-upgrades)
x (package-menu-execute)

then answer "yes" to "upgrade?" and "delete old?" questions.

It would be nice if, similar to aptitude:

aptitude update && aptitude -y full-upgrade && aptitude autoclean && deborphan

I could do M-x package-upgrade-all RET and everything were done right
away - no menus, no questions.
(I looked at package.el myself and was unable to disentangle the "work"
for the GUI).

Thanks.

-- 
Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1343
http://www.childpsy.net/ http://dhimmi.org http://islamexposedonline.com
http://ffii.org http://thereligionofpeace.com http://think-israel.org
My inferiority complex is the only thing I can be proud of.





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

* bug#19146: 25.0.50; RFE: non-interactive package upgrade
  2014-11-21 19:23 bug#19146: 25.0.50; RFE: non-interactive package upgrade Sam Steingold
@ 2022-05-12  1:59 ` Lars Ingebrigtsen
  2022-05-12  2:23   ` Sam Steingold
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-12  1:59 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 19146

Sam Steingold <sds@gnu.org> writes:

> To upgrade all packages I need to do :
>
> M-x list-packages RET
> U (package-menu-mark-upgrades)
> x (package-menu-execute)
>
> then answer "yes" to "upgrade?" and "delete old?" questions.
>
> It would be nice if, similar to aptitude:
>
> aptitude update && aptitude -y full-upgrade && aptitude autoclean && deborphan
>
> I could do M-x package-upgrade-all RET and everything were done right
> away - no menus, no questions.
> (I looked at package.el myself and was unable to disentangle the "work"
> for the GUI).

I've now added `M-x package-update-all' to Emacs 29.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#19146: 25.0.50; RFE: non-interactive package upgrade
  2022-05-12  1:59 ` Lars Ingebrigtsen
@ 2022-05-12  2:23   ` Sam Steingold
  2022-05-12  2:25     ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Sam Steingold @ 2022-05-12  2:23 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 19146

Thank you!
So, does
emacs --funcall package-update-all
work now?


On Wed, 11 May 2022 at 21:59, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>
> Sam Steingold <sds@gnu.org> writes:
>
> > To upgrade all packages I need to do :
> >
> > M-x list-packages RET
> > U (package-menu-mark-upgrades)
> > x (package-menu-execute)
> >
> > then answer "yes" to "upgrade?" and "delete old?" questions.
> >
> > It would be nice if, similar to aptitude:
> >
> > aptitude update && aptitude -y full-upgrade && aptitude autoclean && deborphan
> >
> > I could do M-x package-upgrade-all RET and everything were done right
> > away - no menus, no questions.
> > (I looked at package.el myself and was unable to disentangle the "work"
> > for the GUI).
>
> I've now added `M-x package-update-all' to Emacs 29.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no



-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net>
<http://steingoldpsychology.com>





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

* bug#19146: 25.0.50; RFE: non-interactive package upgrade
  2022-05-12  2:23   ` Sam Steingold
@ 2022-05-12  2:25     ` Lars Ingebrigtsen
  2022-05-16 14:18       ` Sam Steingold
  0 siblings, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-12  2:25 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 19146

Sam Steingold <sds@gnu.org> writes:

> Thank you!
> So, does
> emacs --funcall package-update-all
> work now?

It defaults to querying, so you should say --eval '(package-update-all t)'.

But I haven't actually tested.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#19146: 25.0.50; RFE: non-interactive package upgrade
  2022-05-12  2:25     ` Lars Ingebrigtsen
@ 2022-05-16 14:18       ` Sam Steingold
  2022-05-17  9:08         ` Lars Ingebrigtsen
  0 siblings, 1 reply; 6+ messages in thread
From: Sam Steingold @ 2022-05-16 14:18 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 19146

package.el is now broken.
"emacs" fails on startup with `Wrong type argument: stringp, nil`.
"emacs -q" works, when I load `package-quickstart.el` manually, I get
`(void-variable package-activated-list)`.
When I manually do `M-x package-initialize`, I can compile and load
`package-quickstart.el`.

When I try to evaluate .emacs, `load-path` does _not_ contain any
paths to any installed package.

Also, `emacs --batch --load package -funcall package-update-all`
prints `No packages to update` while interactively it _does_ find
packages to update.
I suspect that this is because `--batch` implies `-q` which means that
batch emacs does not know about my local packages?

On Wed, 11 May 2022 at 22:25, Lars Ingebrigtsen <larsi@gnus.org> wrote:
>
> Sam Steingold <sds@gnu.org> writes:
>
> > Thank you!
> > So, does
> > emacs --funcall package-update-all
> > work now?
>
> It defaults to querying, so you should say --eval '(package-update-all t)'.
>
> But I haven't actually tested.
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no



-- 
Sam Steingold <http://sds.podval.org> <http://www.childpsy.net>
<http://steingoldpsychology.com>





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

* bug#19146: 25.0.50; RFE: non-interactive package upgrade
  2022-05-16 14:18       ` Sam Steingold
@ 2022-05-17  9:08         ` Lars Ingebrigtsen
  0 siblings, 0 replies; 6+ messages in thread
From: Lars Ingebrigtsen @ 2022-05-17  9:08 UTC (permalink / raw)
  To: Sam Steingold; +Cc: 19146

Sam Steingold <sds@gnu.org> writes:

> package.el is now broken.
> "emacs" fails on startup with `Wrong type argument: stringp, nil`.
> "emacs -q" works, when I load `package-quickstart.el` manually, I get
> `(void-variable package-activated-list)`.
> When I manually do `M-x package-initialize`, I can compile and load
> `package-quickstart.el`.
>
> When I try to evaluate .emacs, `load-path` does _not_ contain any
> paths to any installed package.

See bug#55447.

> Also, `emacs --batch --load package -funcall package-update-all`
> prints `No packages to update` while interactively it _does_ find
> packages to update.
> I suspect that this is because `--batch` implies `-q` which means that
> batch emacs does not know about my local packages?

Yes, you have to put a -l ~/.emacs in there to get that to work.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2022-05-17  9:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-21 19:23 bug#19146: 25.0.50; RFE: non-interactive package upgrade Sam Steingold
2022-05-12  1:59 ` Lars Ingebrigtsen
2022-05-12  2:23   ` Sam Steingold
2022-05-12  2:25     ` Lars Ingebrigtsen
2022-05-16 14:18       ` Sam Steingold
2022-05-17  9:08         ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).