* Updating Packages @ 2022-07-12 18:38 allan 2022-07-14 10:28 ` Munyoki Kilyungi 0 siblings, 1 reply; 11+ messages in thread From: allan @ 2022-07-12 18:38 UTC (permalink / raw) To: guix-devel Hi there! I am new to software development, but I would like to contribute. I want to start by updating some rust packages to newer versions.<br> So far I have just been making scheme files in a seperate directory and running "guix build -f $SCHEME_FILE". I am trying to follow the [guidlines in the manual](https://guix.gnu.org/manual/en/html_node/Contributing.html), but git is still new to me and I am a little confused how to make this all work. What should I do to get package builds to recognize the updates I make to dependencies? ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2022-07-12 18:38 Updating Packages allan @ 2022-07-14 10:28 ` Munyoki Kilyungi 2022-07-14 13:42 ` Josselin Poiret 0 siblings, 1 reply; 11+ messages in thread From: Munyoki Kilyungi @ 2022-07-14 10:28 UTC (permalink / raw) To: allan; +Cc: guix-devel [-- Attachment #1: Type: text/plain, Size: 1070 bytes --] allan <allroj978@gmail.com> anaandika: > Hi there! I am new to software development, but I would like to contribute. I want to start by updating some rust packages to newer versions.<br> > > So far I have just been making scheme files in a seperate directory > and running "guix build -f $SCHEME_FILE". I am trying to follow the > [guidlines in the > manual](https://guix.gnu.org/manual/en/html_node/Contributing.html), > but git is still new to me and I am a little confused how to make this > all work. > > What should I do to get package builds to recognize the updates I make to dependencies? > Have a look at: <https://guix.gnu.org/cookbook/en/html_node/Packaging-Tutorial.html> that has an in-depth take on packaging. Once you have a patch that you are ready to submit, follow this: <https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html>. HTH'ed. -- (Life is like a pencil that will surely run out, but will leave the beautiful writing of life.) (D4F09EB110177E03C28E2FE1F5BBAE1E0392253F (hkp://keys.gnupg.net)) [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 865 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2022-07-14 10:28 ` Munyoki Kilyungi @ 2022-07-14 13:42 ` Josselin Poiret 0 siblings, 0 replies; 11+ messages in thread From: Josselin Poiret @ 2022-07-14 13:42 UTC (permalink / raw) To: Munyoki Kilyungi, allan; +Cc: guix-devel Hello both, Munyoki Kilyungi <me@bonfacemunyoki.com> writes: > Have a look at: > <https://guix.gnu.org/cookbook/en/html_node/Packaging-Tutorial.html> > that has an in-depth take on packaging. Once you > have a patch that you are ready to submit, follow > this: > <https://guix.gnu.org/manual/en/html_node/Submitting-Patches.html>. > HTH'ed. I'd just like to add that if at any point you'd like some help, there are always people willing to provide some on IRC, or on the MLs. No stupid questions, just ask away! Good luck, -- Josselin Poiret ^ permalink raw reply [flat|nested] 11+ messages in thread
* Updating Packages @ 2019-04-15 16:46 Raghav Gururajan 2019-04-15 18:48 ` Tobias Geerinckx-Rice ` (3 more replies) 0 siblings, 4 replies; 11+ messages in thread From: Raghav Gururajan @ 2019-04-15 16:46 UTC (permalink / raw) To: help-guix [-- Attachment #1: Type: text/plain, Size: 498 bytes --] Hello Guix! It seems like, when I do "guix package -u", only packages installed by user are upgraded. It also seems like, when I do "guix system reconfigure", only system installed packages are upgraded. I noticed the latter when "slim" got replaced by "gdm" and name "GuixSD" got replaced by "Guix" in multiple places in GNOME, GRUB etc; when I did the system reconfiguration. How to update packages in both system-profile and user-profile, at the same time? Thank you! Regards, RG. [-- Attachment #2: Type: text/html, Size: 784 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2019-04-15 16:46 Raghav Gururajan @ 2019-04-15 18:48 ` Tobias Geerinckx-Rice 2019-04-15 18:50 ` Pierre Neidhardt ` (2 subsequent siblings) 3 siblings, 0 replies; 11+ messages in thread From: Tobias Geerinckx-Rice @ 2019-04-15 18:48 UTC (permalink / raw) To: Raghav Gururajan; +Cc: help-guix [-- Attachment #1: Type: text/plain, Size: 743 bytes --] Raghav, Raghav Gururajan wrote: > It seems like, when I do "guix package -u", only packages > installed by user are upgraded. It also seems like, when I do > "guix system reconfigure", only system installed packages are > upgraded. Yes, that's how it works. I gather (’…seems…’) that you didn't find this clearly explained in the documentation? Could you suggest an improvement? > How to update packages in both system-profile and user-profile, > at the same time? I don't know whether it's possible to (easily) apply both updates within the same transaction from the command line. Unless you really need to: guix pull && guix system reconfigure … && guix package -u …. Kind regards, T G-R [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2019-04-15 16:46 Raghav Gururajan 2019-04-15 18:48 ` Tobias Geerinckx-Rice @ 2019-04-15 18:50 ` Pierre Neidhardt 2019-04-16 4:36 ` Raghav Gururajan 2019-04-16 4:43 ` Raghav Gururajan 3 siblings, 0 replies; 11+ messages in thread From: Pierre Neidhardt @ 2019-04-15 18:50 UTC (permalink / raw) To: Raghav Gururajan, help-guix [-- Attachment #1: Type: text/plain, Size: 153 bytes --] Maybe not what you are asking but what about guix system reconfigure ... && guix package -u ? -- Pierre Neidhardt https://ambrevar.xyz/ [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 487 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2019-04-15 16:46 Raghav Gururajan 2019-04-15 18:48 ` Tobias Geerinckx-Rice 2019-04-15 18:50 ` Pierre Neidhardt @ 2019-04-16 4:36 ` Raghav Gururajan 2019-05-05 19:12 ` Chris Marusich 2019-04-16 4:43 ` Raghav Gururajan 3 siblings, 1 reply; 11+ messages in thread From: Raghav Gururajan @ 2019-04-16 4:36 UTC (permalink / raw) To: Pierre Neidhardt, help-guix Hmm. Okay. Thank you. April 15, 2019 3:22 PM, "Pierre Neidhardt" <mail@ambrevar.xyz> wrote: > Maybe not what you are asking but what about > > guix system reconfigure ... && guix package -u > > ? > > -- > Pierre Neidhardt > https://ambrevar.xyz ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2019-04-16 4:36 ` Raghav Gururajan @ 2019-05-05 19:12 ` Chris Marusich 0 siblings, 0 replies; 11+ messages in thread From: Chris Marusich @ 2019-05-05 19:12 UTC (permalink / raw) To: Raghav Gururajan; +Cc: help-guix [-- Attachment #1: Type: text/plain, Size: 3103 bytes --] Hi Raghav, "Raghav Gururajan" <rvgn@disroot.org> writes: > Hmm. Okay. > > Thank you. > > April 15, 2019 3:22 PM, "Pierre Neidhardt" <mail@ambrevar.xyz> wrote: > >> Maybe not what you are asking but what about >> >> guix system reconfigure ... && guix package -u >> >> ? First, just a reminder: on this email list, please avoid top-posting. Most people bottom-post or reply in-line. It's fine to cut out text that is not relevant to your response. Now, as to your question: Pierre has given the answer. There is not currently a way to upgrade the system and the user profiles in a single transaction. This might make one ask, "Why is that?" I want to offer an explanation why. Guix System follows the functional software deployment model and is designed to put the users (even unprivileged users) in control of their own software, as well as their own Guix installation. It is designed so that a system administrator can upgrade the system software and services without interfering with what the users have installed. Likewise, users can upgrade their own software without interfering with the system's underlying software. This is a good feature. It separates concerns and gives more control to users and administrators both. Remember, an administrator has full access to the system, so they can still forcibly upgrade user profiles if they choose to do so. In a traditional GNU/Linux distribution, you generally need special privileges (e.g., sudo or root access) in order to use the system's package manager to install/remove any software. On such systems, the package manager does not provide any way for any users (privileged or not) to manage "their own" software; all software is effectively "system" software, and it must be managed by a privileged user. On these systems, upgrading the system software upgrades software for all users. Guix provides more fine-grained control than this. At first blush, it might seem like it isn't good that we can't upgrade all the software in a single transaction, but from the perspective of ensuring correct deployment of software, it actually isn't a problem. If Bob upgrades his profile, it won't interfere with software that Alice has installed, and it won't interfere with any system software, either. Likewise, if the system is upgraded, it won't interfere with any software that Alice or Bob have installed, since their profiles are "self-contained" thanks to the functional model. From a security perspective, it may be undesirable to allow old profiles containing software with security vulnerabilities to exist, but that can be fixed by upgrading the stale profiles. The task of enforcing that every profile is "up to date" is arguably outside the scope of Guix; Guix just provides the mechanisms to make it possible for you to upgrade all that software in a safe fashion. I hope that helps explain why it makes sense that the task of "upgrading a user's profile" and "upgrading the system's software" are independent of each other in Guix System. -- Chris [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 832 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2019-04-15 16:46 Raghav Gururajan ` (2 preceding siblings ...) 2019-04-16 4:36 ` Raghav Gururajan @ 2019-04-16 4:43 ` Raghav Gururajan 2019-04-16 21:36 ` Joshua Branson 2019-04-17 1:52 ` Tobias Geerinckx-Rice 3 siblings, 2 replies; 11+ messages in thread From: Raghav Gururajan @ 2019-04-16 4:43 UTC (permalink / raw) To: Tobias Geerinckx-Rice; +Cc: help-guix I had an idea/suggestion. How about adding "guix system -u" feature to guix? So the difference between "guix system reconfigure" and "guix system -u" would be; the former does the reconfiguration cum upgrade process whereas the latter does just the upgrade process to system packages in the existing configuration. April 15, 2019 2:48 PM, "Tobias Geerinckx-Rice" <me@tobias.gr> wrote: > Raghav, > > Raghav Gururajan wrote: > >> It seems like, when I do "guix package -u", only packages >> installed by user are upgraded. It also seems like, when I do >> "guix system reconfigure", only system installed packages are >> upgraded. > > Yes, that's how it works. > > I gather (’…seems…’) that you didn't find this clearly explained > in the documentation? Could you suggest an improvement? > >> How to update packages in both system-profile and user-profile, >> at the same time? > > I don't know whether it's possible to (easily) apply both updates > within the same transaction from the command line. > > Unless you really need to: guix pull && guix system reconfigure … > && guix package -u …. > > Kind regards, > > T G-R ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2019-04-16 4:43 ` Raghav Gururajan @ 2019-04-16 21:36 ` Joshua Branson 2019-04-17 1:52 ` Tobias Geerinckx-Rice 1 sibling, 0 replies; 11+ messages in thread From: Joshua Branson @ 2019-04-16 21:36 UTC (permalink / raw) To: help-guix "Raghav Gururajan" <rvgn@disroot.org> writes: > I had an idea/suggestion. How about adding "guix system -u" feature to > guix? So the difference between "guix system reconfigure" and "guix > system -u" would be; the former does the reconfiguration cum upgrade > process whereas the latter does just the upgrade process to system > packages in the existing configuration. You might be able to create an alias for this in your .bashrc...but I'm not certain. > > April 15, 2019 2:48 PM, "Tobias Geerinckx-Rice" <me@tobias.gr> wrote: > >> Raghav, >> >> Raghav Gururajan wrote: >> >>> It seems like, when I do "guix package -u", only packages >>> installed by user are upgraded. It also seems like, when I do >>> "guix system reconfigure", only system installed packages are >>> upgraded. >> >> Yes, that's how it works. >> >> I gather (’…seems…’) that you didn't find this clearly explained >> in the documentation? Could you suggest an improvement? >> >>> How to update packages in both system-profile and user-profile, >>> at the same time? >> >> I don't know whether it's possible to (easily) apply both updates >> within the same transaction from the command line. >> >> Unless you really need to: guix pull && guix system reconfigure … >> && guix package -u …. >> >> Kind regards, >> >> T G-R > -- Joshua Branson Sent from Emacs and Gnus ^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Updating Packages 2019-04-16 4:43 ` Raghav Gururajan 2019-04-16 21:36 ` Joshua Branson @ 2019-04-17 1:52 ` Tobias Geerinckx-Rice 1 sibling, 0 replies; 11+ messages in thread From: Tobias Geerinckx-Rice @ 2019-04-17 1:52 UTC (permalink / raw) To: Raghav Gururajan; +Cc: help-guix [-- Attachment #1: Type: text/plain, Size: 810 bytes --] Raghav Gururajan wrote: > I had an idea/suggestion. How about adding "guix system -u" > feature to guix? So the difference between "guix system > reconfigure" and "guix system -u" would be; the former does the > reconfiguration cum upgrade process whereas the latter does just > the upgrade process to system packages in the existing > configuration. But this arbitrary distinction doesn't make sense. The system configuration file is a configuration file. Like any other configuration file on your system, if you edit it and then invoke a new ’guix system’, Guix will use the current version of that configuration, not silently fall back to an out-of-date copy. That's how config files work. Unless you're sendmail, and nobody wants to be sendmail. Kind regards, T G-R [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2022-07-14 13:42 UTC | newest] Thread overview: 11+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-07-12 18:38 Updating Packages allan 2022-07-14 10:28 ` Munyoki Kilyungi 2022-07-14 13:42 ` Josselin Poiret -- strict thread matches above, loose matches on Subject: below -- 2019-04-15 16:46 Raghav Gururajan 2019-04-15 18:48 ` Tobias Geerinckx-Rice 2019-04-15 18:50 ` Pierre Neidhardt 2019-04-16 4:36 ` Raghav Gururajan 2019-05-05 19:12 ` Chris Marusich 2019-04-16 4:43 ` Raghav Gururajan 2019-04-16 21:36 ` Joshua Branson 2019-04-17 1:52 ` Tobias Geerinckx-Rice
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/guix.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.