On Wed, Oct 16, 2019 at 12:21:52AM +0330, Reza Alizadeh Majd wrote:
> > I'm not sure I understand your question, so let me rephrase and please tell 
> > me 
> > if it's not what you wanted to ask. When you upgrade the distribution with 
> > guix 
> > pull, you can get a list of what could be upgraded using, say, guix package 
> > -n 
> > -u. Your question was, I think, how to do that for globally available 
> > packages.
> >
> > If that is your question, the answer is quite simple. The set of globally 
> > installed packages is installed in a separate profile from the user 
> > profile. 
> > You can use the same command as before, specifying that other profile, to 
> > get 
> > the same result, with globally installed packages:
> > 
> > guix package -p /run/current-system/profile -n -u
> 
> 
> Hi Julien, 
> 
> Sorry if I couldn't describe my issue well. yes thats exactly what I meant to 
> say.
> so as I understand: 
> 
> 1.  we can get list of upgradable packages using:   `guix package -n -u`
> 
> 2. globally available packages are located in system profile located 
> in `/run/current-system/profile` and we can't check for upgrades just by
> pointing the profile location. 
> 

This is pretty cool, I never tried doing that before.

(ins)efraim@E5400 ~/workspace/guix$ ./pre-inst-env guix package -p 
/run/current-system/profile -n -u

The following derivation would be built:
   /gnu/store/mznyxwxi62ca8rlkmfbq66vb0m7wlz7p-profile.drv
2.6 MB would be downloaded:
   /gnu/store/qyzlsaiqfggbk0j505h4m57wyyqvjnxv-grep-3.3
   /gnu/store/1gyi4i5lbpr7apm74p08dwy11fhzh4j7-sed-4.7
   /gnu/store/nmy9vns5xavx4c77kij5yb85k7axx06w-findutils-4.6.0
   /gnu/store/gh02bsk1w007gv4sl3b5rj18ziqgxm6f-diffutils-3.7
   /gnu/store/c2vas7isbs7iwjsr7wr09iwdsw9vvy25-ed-1.15
   /gnu/store/8ap398fd00xqa9ng9yzv8amkni7fzpi9-patch-2.7.6
   /gnu/store/bf18yhnd9h5qlfsw8s4c849k424ph1qh-libsigsegv-2.12
   /gnu/store/hn8kdxgd1yjqwmc32p4xjkzkhhw82g6f-gawk-5.0.1
The following profile hooks would be built:
   /gnu/store/hc51jygkiadkq8z5337jl80cpr3f8i3a-manual-database.drv
   /gnu/store/hn2ybg56m2qas1bz782b08yr6hpahb96-xdg-desktop-database.drv
   /gnu/store/j2lnvm506d9vlyksfdwnpkv1cp1n9l1c-xdg-mime-database.drv
   /gnu/store/nh6361wwkgncxzqbgfyl37n66c6hz1pz-fonts-dir.drv
   /gnu/store/q3bn0518lzmbm3mbd24r9h3flriabyxs-ca-certificate-bundle.drv
   /gnu/store/sl5yc24v3xrbrqajfrrxszw16xnz7jns-glib-schemas.drv
   /gnu/store/ybqjn15ixigjfl3g0qyinvabii8iba6g-info-dir.drv

-- 
Efraim Flashner   <efr...@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: signature.asc
Description: PGP signature

Reply via email to