unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#42814: request: make guix upgrade recognize --do-not-upgrade
@ 2020-08-11 18:37 Jesse Gibbons
  2020-08-28 12:28 ` Mathieu Othacehe
  0 siblings, 1 reply; 2+ messages in thread
From: Jesse Gibbons @ 2020-08-11 18:37 UTC (permalink / raw)
  To: 42814

 From the manual:

    • ‘guix search’ is an alias for ‘guix package -s’,
    • ‘guix install’ is an alias for ‘guix package -i’,
    • ‘guix remove’ is an alias for ‘guix package -r’,
    • ‘guix upgrade’ is an alias for ‘guix package -u’,
    • and ‘guix show’ is an alias for ‘guix package --show=’.

One option for "guix package -u" I often find myself using is 
--do-not-upgrade. However, guix upgrade does not recognize that option.

When I run "guix upgrade --do-not-upgrade=ungoogled-chromium" I get the 
following results:

guix upgrade: error: do-not-upgrade=ungoogled-chromium: unrecognized option

This is a bit frustrating, because I want to be able to upgrade all my 
profiles with the command:

"guix package --list-profiles | xargs -n1 guix upgrade 
--do-not-upgrade=ungoogled-chromium"

But it prints the above error for every profile and doesn't actually do 
anything.

For now, my work-around is code like the following:

"for profile in $(guix package --list-profiles); do guix package -p 
$profile --do-not-upgrade=ungoogled-chromium -u; done"

As you can see, this is quite a bit more complex than it needs to be.

So, why not have guix upgrade recognize the --do-not-upgrade option?





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

* bug#42814: request: make guix upgrade recognize --do-not-upgrade
  2020-08-11 18:37 bug#42814: request: make guix upgrade recognize --do-not-upgrade Jesse Gibbons
@ 2020-08-28 12:28 ` Mathieu Othacehe
  0 siblings, 0 replies; 2+ messages in thread
From: Mathieu Othacehe @ 2020-08-28 12:28 UTC (permalink / raw)
  To: Jesse Gibbons; +Cc: 42814-done


Hello,

> As you can see, this is quite a bit more complex than it needs to be.
>
> So, why not have guix upgrade recognize the --do-not-upgrade option?

Thanks for the suggestion, it has been implemented by Jakub with
7ba7d50f92416821ec4fc124a49d74149b6d4d33.

Mathieu




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

end of thread, other threads:[~2020-08-28 12:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-11 18:37 bug#42814: request: make guix upgrade recognize --do-not-upgrade Jesse Gibbons
2020-08-28 12:28 ` Mathieu Othacehe

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

	https://git.savannah.gnu.org/cgit/guix.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).