You are not logged in.

#1 2020-01-25 21:35:05

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Update Archlinux without Internet connection

hello guys, currently at my house i do not have internet connection and i am scared to leave my desktop without updates for a long time.... most likely i will run into troubles if i do so. I have also an archlinux laptop that i update daily at work. I am wondering if there is anything i can do to update my desktop without internet connection

Offline

#2 2020-01-25 22:22:50

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,052

Online

#3 2020-01-25 22:23:21

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Update Archlinux without Internet connection

You can copy the packages from a USB drive and pacman -U.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2020-01-26 19:47:16

InvisibleRasta
Member
Registered: 2017-04-12
Posts: 122

Re: Update Archlinux without Internet connection

thing is that my two systems have different packages installed so if i copy the cache from laptop to desktop there will be tons of missing packages... is there another way to do it?  Id need a way to figure out all the packages i have on the desktop and then download them with the laptop

Last edited by InvisibleRasta (2020-01-26 19:48:03)

Offline

#5 2020-01-26 20:46:09

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,052

Re: Update Archlinux without Internet connection

Check the pacman manpage.
"pacman -Qqn" will list all installed "native" packages w/o versions (ie. in required form) and "pacman -Sw" will only download packages…

Online

#6 2020-01-26 20:49:01

webcapcha
Member
Registered: 2019-02-14
Posts: 167

Re: Update Archlinux without Internet connection

From man pacman: pacman -Sw $(pacman -Qqn)

Last edited by webcapcha (2020-01-26 20:49:27)


Ukrainian

Offline

#7 2020-01-26 20:59:23

loqs
Member
Registered: 2014-03-06
Posts: 19,089

Re: Update Archlinux without Internet connection

If a package gains new dependencies what would pick those up?  Would it not be safer to not upgrade the system until it has internet access.

Offline

#8 2020-01-26 21:25:00

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

Re: Update Archlinux without Internet connection

I have a maybe dangerous idea. You could copy the pacman database of the isolated system to the laptop and then download packages with "pacman -Syuw --dbpath ....". Take care not to destroy your laptop installation, though.


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

Offline

#9 2020-01-27 01:43:58

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: Update Archlinux without Internet connection

loqs wrote:

If a package gains new dependencies what would pick those up?  Would it not be safer to not upgrade the system until it has internet access.

pacman -Sw without -dd will do dependency resolution for packages you need to install, the same way pacman -S normally would.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

Board footer

Powered by FluxBB