You are not logged in.

#1 2021-06-11 17:30:01

Alemswaj
Member
Registered: 2021-06-11
Posts: 2

Offline Update gnome-software

Hi,
Anyone knows how can I do to have offline update working with gnome-software ?

Offline

#2 2021-06-11 18:05:24

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Offline Update gnome-software

Welcome to archlinux forums .

It may be possible to get systemd.offline-updates to work with pacman, but
I don't think anyone has ever tried to do that on archlinux .

Frankly I doubt offline updates match with arch principles[1]



[1] https://wiki.archlinux.org/title/Arch_Linux#Principles


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2021-06-11 18:24:42

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Offline Update gnome-software

It may be possible to get systemd.offline-updates to work with pacman, but

I think it should be possible, the manual process looks something lilke this:
Use checkupdates to download the database into a cached location (set CHECKUPDATES_DB), and tell it to download updated packages into the cache.
When you are ready to update, replace the sync database with the cached copy and perform the update with the cached packages (pacman -Su)
If you install a package between download and execution, it may fail. If it succeeds, you might have gotten an old version from an outdated mirror and the system update later will require an internet connection to update that new package and it cannot be performed offline. (You could re-run the download to the cache to fix that)

Edit: For gnome-software it is might be necessary to patch packagekit. I believe packagekit simply updates the system sync database, so scheduling the offline update with packagekit may result in an unsupported partial upgrade in case you install another package in between download and offline update.

Last edited by progandy (2021-06-11 18:40:36)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#4 2021-06-11 19:15:11

Alemswaj
Member
Registered: 2021-06-11
Posts: 2

Re: Offline Update gnome-software

Ok, that seems to be quite hard for having gnome-software's offline update.
But maybe I can use "normal" update with gnome-software, I don't find how to do it.
Or if it's can't possible, I will just use another software.
Thanks

Offline

#5 2021-11-11 09:38:53

laichiaheng
Member
Registered: 2017-02-12
Posts: 193

Re: Offline Update gnome-software

Alemswaj wrote:

Ok, that seems to be quite hard for having gnome-software's offline update.
But maybe I can use "normal" update with gnome-software, I don't find how to do it.
Or if it's can't possible, I will just use another software.
Thanks

I accidentally found the solution, it was answered by a Manjaro developer.
https://gitlab.manjaro.org/manjaro-arm/ … issues/208
All I need to do are 2 steps:

cd /lib/systemd/system/system-update.target.wants
ln -s ../packagekit-offline-update.service packagekit-offline-update.service

He said that I could do it with this command:

systemctl enable packagekit-offline-update.service

However, it doesn't work. Is it intentionally removed by Arch?
At least Gnome Software can work as expected.

Last edited by laichiaheng (2021-11-11 09:41:08)

Offline

#6 2021-11-11 10:18:52

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Offline Update gnome-software

$ pkgfile packagekit-offline-update.service
community/packagekit
$ 

The service does exist, additonal configuration may be needed.
Maybe you could start a new thread, laichiaheng ?

Add the output of pacman -Qi packagekit and a full journal log to it.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#7 2021-11-11 13:46:19

seth
Member
Registered: 2012-09-03
Posts: 49,992

Re: Offline Update gnome-software

He's crossposing, https://bbs.archlinux.org/viewtopic.php … 2#p2002612
The service isn't installable (for whatever reason)

Online

Board footer

Powered by FluxBB