Are offline updates a thing?

Hello Everyone. I run Garuda Dragonized on 2 computers. My only internet comes from my android phone. In America, our mobile hotspots are limited (mine was limited to 15gigs a month) and i've learned to get around that with the PDANet+ Android app but still limited to only 40 gigs a month before I get slowed to 2G Data. To make a long story short, I'm hoping to find a way the 2 computers could share an update; or any other way anyone can think of to use less bandwidth. I'd love to hear any ideas, whatever they are. Thank you.

inxi #1

 ╭─[email protected] in ~ took 1h7m43s
 ╰─λ sudo inxi -Famz
[sudo] password for user:     
System:    Kernel: 5.14.15-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=5634b16a-e443-4173-b485-8bda91837d75 rw
           [email protected] quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
           systemd.unified_cgroup_hierarchy=1 loglevel=3
           Console: pty pts/0 wm: kwin_x11 DM: SDDM Distro: Garuda Linux base: Arch Linux
Machine:   Type: Laptop System: LENOVO product: 427639U v: ThinkPad W520 serial: <filter> Chassis: type: 10 serial: <filter>
           Mobo: LENOVO model: 427639U serial: <filter> UEFI: LENOVO v: 8BET62WW (1.42 ) date: 07/26/2013
Battery:   ID-1: BAT0 charge: 64.5 Wh (98.3%) condition: 65.6/71.3 Wh (92.1%) volts: 12.4 min: 10.8 model: SANYO 42T4763
           type: Li-ion serial: <filter> status: Unknown
Memory:    RAM: total: 17.46 GiB used: 2.93 GiB (16.8%)
           Array-1: capacity: 32 GiB slots: 4 EC: None max-module-size: 8 GiB note: est.
           Device-1: ChannelA-DIMM0 size: 8 GiB speed: 1333 MT/s type: DDR3 detail: synchronous bus-width: 64 bits
           total: 64 bits manufacturer: 0000 part-no: Not Specified serial: N/A
           Device-2: ChannelA-DIMM1 size: 8 GiB speed: 1333 MT/s type: DDR3 detail: synchronous bus-width: 64 bits
           total: 64 bits manufacturer: 85F7 part-no: H641GU67G1600G serial: N/A
           Device-3: ChannelB-DIMM0 size: 2 GiB speed: 1333 MT/s type: DDR3 detail: synchronous bus-width: 64 bits
           total: 64 bits manufacturer: Hynix/Hyundai part-no: HMT425S6CFR6A-PB serial: <filter>
           Device-4: ChannelB-DIMM1 size: No Module Installed
CPU:       Info: Quad Core model: Intel Core i7-2820QM bits: 64 type: MT MCP arch: Sandy Bridge family: 6 model-id: 2A (42)
           stepping: 7 microcode: 2F cache: L1: 64 KiB L2: 8 MiB L3: 8 MiB
           flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 36681
           Speed: 2238 MHz min/max: 800/3400 MHz base/boost: 2300/2300 volts: 1.2 V ext-clock: 100 MHz Core speeds (MHz):
           1: 2238 2: 2370 3: 2590 4: 2901 5: 2920 6: 3079 7: 2855 8: 2614
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
           Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
           Type: mds mitigation: Clear CPU buffers; SMT vulnerable
           Type: meltdown mitigation: PTI
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
           Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics vendor: Lenovo driver: i915 v: kernel
           bus-ID: 00:02.0 chip-ID: 8086:0126 class-ID: 0300
           Device-2: NVIDIA GF108GLM [Quadro 1000M] vendor: Lenovo driver: nvidia v: 390.144 alternate: nouveau,nvidia_drm
           bus-ID: 01:00.0 chip-ID: 10de:0dfa class-ID: 0300
           Device-3: Chicony Lenovo Integrated Camera (0.3MP) type: USB driver: uvcvideo bus-ID: 1-1.6:6 chip-ID: 04f2:b217
           class-ID: 0e02
           Display: server: X.Org 1.20.13 compositor: kwin_x11 driver: loaded: modesetting,nvidia display-ID: :0 screens: 1
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
           Monitor-1: LVDS-1-1 res: 1920x1080 hz: 60 dpi: 142 size: 344x193mm (13.5x7.6") diag: 394mm (15.5")
           OpenGL: renderer: Quadro 1000M/PCIe/SSE2 v: 4.6.0 NVIDIA 390.144 direct render: Yes
Audio:     Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Lenovo ThinkPad T520
           driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403
           Device-2: NVIDIA GF108 High Definition Audio vendor: Lenovo driver: snd_hda_intel v: kernel bus-ID: 01:00.1
           chip-ID: 10de:0bea class-ID: 0403
           Sound Server-1: ALSA v: k5.14.15-zen1-1-zen running: yes
           Sound Server-2: JACK v: 1.9.19 running: no
           Sound Server-3: PulseAudio v: 15.0 running: no
           Sound Server-4: PipeWire v: 0.3.39 running: yes
Network:   Device-1: Intel 82579LM Gigabit Network vendor: Lenovo ThinkPad T520 driver: e1000e v: kernel port: 6080
           bus-ID: 00:19.0 chip-ID: 8086:1502 class-ID: 0200
           IF: enp0s25 state: down mac: <filter>
           Device-2: Intel Centrino Advanced-N 6205 [Taylor Peak] driver: iwlwifi v: kernel bus-ID: 03:00.0 chip-ID: 8086:0085
           class-ID: 0280
           IF: wlp3s0 state: up mac: <filter>
           Device-3: D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT3072] type: USB driver: rt2800usb
           bus-ID: 1-1.2:3 chip-ID: 07d1:3c0a class-ID: 0000 serial: <filter>
           IF: wlp0s26u1u2 state: up mac: <filter>
Bluetooth: Device-1: Broadcom BCM2045B (BDC-2.1) type: USB driver: btusb v: 0.8 bus-ID: 1-1.4:5 chip-ID: 0a5c:217f
           class-ID: fe01 serial: <filter>
           Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:    Local Storage: total: 1.17 TiB used: 264.24 GiB (22.1%)
           ID-1: /dev/mmcblk0 maj-min: 179:0 model: SD size: 116.48 GiB block-size: physical: 512 B logical: 512 B type: SSD
           serial: <filter>
           SMART Message: Unknown smartctl error. Unable to generate data.
           ID-2: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HTS721010A9E630 family: Travelstar 7K1000
           size: 931.51 GiB block-size: physical: 4096 B logical: 512 B sata: 3.0 speed: 6.0 Gb/s type: HDD rpm: 7200
           serial: <filter> rev: A3U0 temp: 38 C scheme: GPT
           SMART: yes state: enabled health: PASSED on: 1y 68d 23h cycles: 3757
           ID-3: /dev/sdb maj-min: 8:16 vendor: Western Digital model: WD1600BEVT-60ZCT1 family: Scorpio Blue Serial ATA
           size: 149.05 GiB block-size: physical: 512 B logical: 512 B sata: 2.5 speed: 3.0 Gb/s type: HDD rpm: 5400
           serial: <filter> rev: 1A13 temp: 38 C scheme: GPT
           SMART: yes state: enabled health: PASSED on: 105d 7h cycles: 1445 Old-Age: write error rate: 100 threshold: 100
Partition: ID-1: / raw-size: 64 GiB size: 64 GiB (100.00%) used: 28.23 GiB (44.1%) fs: btrfs block-size: 4096 B dev: /dev/sda2
           maj-min: 8:2
           ID-2: /boot/efi raw-size: 100 MiB size: 98.4 MiB (98.42%) used: 36.6 MiB (37.2%) fs: vfat block-size: 512 B
           dev: /dev/sda1 maj-min: 8:1
           ID-3: /home raw-size: 827.41 GiB size: 827.41 GiB (100.00%) used: 235.98 GiB (28.5%) fs: btrfs block-size: 4096 B
           dev: /dev/sda3 maj-min: 8:3
           ID-4: /var/log raw-size: 64 GiB size: 64 GiB (100.00%) used: 28.23 GiB (44.1%) fs: btrfs block-size: 4096 B
           dev: /dev/sda2 maj-min: 8:2
           ID-5: /var/tmp raw-size: 64 GiB size: 64 GiB (100.00%) used: 28.23 GiB (44.1%) fs: btrfs block-size: 4096 B
           dev: /dev/sda2 maj-min: 8:2
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
           ID-1: swap-1 type: zram size: 17.46 GiB used: 2.5 MiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 50.0 C mobo: N/A gpu: nvidia temp: 51 C
           Fan Speeds (RPM): cpu: 2501
Info:      Processes: 281 Uptime: 1h 35m wakeups: 1 Init: systemd v: 249 tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.1
           Packages: pacman: 1373 lib: 343 Shell: fish (sudo) v: 3.3.1 default: Bash v: 5.1.8 running-in: konsole inxi: 3.3.08

Inxi #2

╭─[email protected] in ~ 
╰─λ sudo inxi -Famz
[sudo] password for user:     
System:    Kernel: 5.14.14-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=0f530c62-8b56-4871-b469-9e17bf15fa1c rw
[email protected] quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Console: pty pts/0 wm: kwin_x11 DM: SDDM Distro: Garuda Linux base: Arch Linux
Machine:   Type: Laptop System: LENOVO product: 20AN009CUS v: ThinkPad T440p serial: <filter> Chassis: type: 10
serial: <filter>
Mobo: LENOVO model: 20AN009CUS v: 0B98401 PRO serial: <filter> UEFI: LENOVO v: GLETA1WW (2.55 ) date: 04/20/2020
Battery:   ID-1: BAT0 charge: 42.5 Wh (100.0%) condition: 42.5/56.2 Wh (75.7%) volts: 12.3 min: 10.8 model: LGC 45N1147
type: Li-ion serial: <filter> status: Full
Memory:    RAM: total: 7.64 GiB used: 2.36 GiB (30.9%)
Array-1: capacity: 16 GiB slots: 2 EC: None max-module-size: 8 GiB note: est.
Device-1: ChannelA-DIMM0 size: 4 GiB speed: 1333 MT/s type: DDR3 detail: synchronous bus-width: 64 bits
total: 64 bits manufacturer: Samsung part-no: M471B5273CH0-CH9 serial: <filter>
Device-2: ChannelB-DIMM0 size: 4 GiB speed: 1333 MT/s type: DDR3 detail: synchronous bus-width: 64 bits
total: 64 bits manufacturer: Samsung part-no: M471B5273CH0-CH9 serial: <filter>
CPU:       Info: Quad Core model: Intel Core i7-4700MQ socket: rPGA988B (U3E1) note: check bits: 64 type: MT MCP arch: Haswell
family: 6 model-id: 3C (60) stepping: 3 microcode: 28 cache: L1: 64 KiB L2: 6 MiB L3: 6 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 38310
Speed: 2459 MHz min/max: 800/3400 MHz base/boost: 2400/2400 volts: 0.8 V ext-clock: 100 MHz Core speeds (MHz):
1: 2459 2: 2633 3: 2462 4: 2417 5: 2503 6: 2431 7: 2473 8: 2452
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:  Device-1: Intel 4th Gen Core Processor Integrated Graphics vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0
chip-ID: 8086:0416 class-ID: 0300
Device-2: NVIDIA GK208M [GeForce GT 730M] vendor: Lenovo driver: nouveau v: kernel bus-ID: 02:00.0
chip-ID: 10de:1290 class-ID: 0300
Display: server: X.Org 1.20.13 compositor: kwin_x11 driver: loaded: intel,nouveau unloaded: modesetting
alternate: fbdev,nv,vesa display-ID: :0 screens: 1
Screen-1: 0 s-res: 1680x1050 s-dpi: 96 s-size: 444x277mm (17.5x10.9") s-diag: 523mm (20.6")
Monitor-1: VGA1 res: 1680x1050 hz: 60 dpi: 91 size: 470x300mm (18.5x11.8") diag: 558mm (22")
OpenGL: renderer: Mesa DRI Intel HD Graphics 4600 (HSW GT2) v: 4.5 Mesa 21.2.4 compat-v: 3.0 direct render: Yes
Audio:     Device-1: Intel Xeon E3-1200 v3/4th Gen Core Processor HD Audio vendor: Lenovo ThinkPad T440p driver: snd_hda_intel
v: kernel bus-ID: 00:03.0 chip-ID: 8086:0c0c class-ID: 0403
Device-2: Intel 8 Series/C220 Series High Definition Audio vendor: Lenovo ThinkPad T440p driver: snd_hda_intel
v: kernel bus-ID: 00:1b.0 chip-ID: 8086:8c20 class-ID: 0403
Sound Server-1: ALSA v: k5.14.14-zen1-1-zen running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: no
Sound Server-4: PipeWire v: 0.3.39 running: yes
Network:   Device-1: Intel Ethernet I217-LM vendor: Lenovo ThinkPad T440p driver: e1000e v: kernel port: 4080 bus-ID: 00:19.0
chip-ID: 8086:153a class-ID: 0200
IF: enp0s25 state: down mac: <filter>
Device-2: Intel Wireless 7260 driver: iwlwifi v: kernel bus-ID: 04:00.0 chip-ID: 8086:08b2 class-ID: 0280
IF: wlp4s0 state: down mac: <filter>
Device-3: D-Link System DWA-140 RangeBooster N Adapter(rev.B2) [Ralink RT3072] type: USB driver: rt2800usb
bus-ID: 3-1:4 chip-ID: 07d1:3c0a class-ID: 0000 serial: <filter>
IF: wlp0s20u1 state: up mac: <filter>
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 3-11:3 chip-ID: 8087:07dc
class-ID: e001
Report: bt-adapter ID: hci0 rfk-id: 2 state: up address: <filter>
Drives:    Local Storage: total: 465.76 GiB used: 97.9 GiB (21.0%)
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD5000LPCX-75VHAT1 family: Blue Mobile size: 465.76 GiB
block-size: physical: 4096 B logical: 512 B sata: 3.1 speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 1A05 temp: 41 C scheme: GPT
SMART: yes state: enabled health: PASSED on: 258d 14h cycles: 5241 read: 20.17 TiB written: 14.13 TiB Old-Age:
g-sense error rate: 4295
Partition: ID-1: / raw-size: 48 GiB size: 48 GiB (100.00%) used: 12.22 GiB (25.4%) fs: btrfs block-size: 4096 B dev: /dev/sda2
maj-min: 8:2
ID-2: /boot/efi raw-size: 100 MiB size: 98.4 MiB (98.42%) used: 3.2 MiB (3.2%) fs: vfat block-size: 512 B
dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 385.66 GiB size: 385.66 GiB (100.00%) used: 85.68 GiB (22.2%) fs: btrfs block-size: 4096 B
dev: /dev/sda3 maj-min: 8:3
ID-4: /var/log raw-size: 48 GiB size: 48 GiB (100.00%) used: 12.22 GiB (25.4%) fs: btrfs block-size: 4096 B
dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 48 GiB size: 48 GiB (100.00%) used: 12.22 GiB (25.4%) fs: btrfs block-size: 4096 B
dev: /dev/sda2 maj-min: 8:2
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 7.64 GiB used: 4.2 MiB (0.1%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 54.0 C mobo: N/A gpu: nouveau temp: 48.0 C
Fan Speeds (RPM): fan-1: 2742
Info:      Processes: 264 Uptime: 7m wakeups: 1 Init: systemd v: 249 tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.1
Packages: pacman: 1225 lib: 305 Shell: fish (sudo) v: 3.3.1 default: Bash v: 5.1.8 running-in: konsole inxi: 3.3.08

Didn't try it yet, but you could try making a backup of the package cache and transfer it to the other machine :eyes:

5 Likes

I have not done it either, but Arch is 100% designed for this. If your computers are networked I'm pretty sure all you need to do is share the location the packages are cached. Once setup this requires little to no manual intervention. Search the Arch Wiki for directions on how to do this.

6 Likes

https://wiki.archlinux.org/title/Offline_installation_of_packages
:slight_smile:

6 Likes

Here's another question...Do you guys know why my 2 inxis formatted differenty? Maybe because I put the 2nd while in edit mode?

For you personally, sudo and -m can maybe useful.
Here in the forum an inxi -Faz is enough :slight_smile:

2 Likes

I rarely have 2 computers that work so I've yet to learn to network and share, but that makes it sound worth learning very soon..

1 Like

This is something that is driving me crazy, which is good :slight_smile:
I think I'm on to something.
If you Edit your Konsole settings and go to Mouse, there are some "Copy options".
It worked for me (keeping the indentation) removing the flag "Trim leading spaces" :slight_smile:
Btw, using the system specs function in the Garuda Assistant works anyway :muscle:

8 Likes

I'm only a seven-year noob so I've been trying to avoid that and staying in the terminal as much as I can but I found the button to reset the panels when they disappear and I love that. I'll have a look and see if I can fix it. Thanks.

Hey, don't be so hard on me. I think the last inxi I sent had a -xxx instead of an -a so I'm getting there.

2 Likes

No prob. There's nothing to fix. I was just having some fun with that indentation difference i already noticed in the past.
The Garuda assistant was actually a reminder for myself: every time I have to ask new users to provide their inxi I could consider that option, if I see they are new to Linux...:+1:

3 Likes

Hey guys! Sorry to bring up an old thread, but:

I've been looking through

cp --help

to figure the best way to copy the pkg directory into the other system, (I'm going to try @dr460nf1r3 's usb drive solution first to buy me some time learning to network the issue) because it seems to me this is a sensitive thing and a wrong move could break things. I just wanted a second or third opinion so I can blame you guys if it breaks..;.(kidding).

I've come up with this while pwd is in the usb drive.

sudo cp -rau pkg /var/cache/pacman/

(options: recursive, archive, and update)

Does that sound right to you guys?

And should I have used the -a option when I copied the pkg directory onto the usb drive? Because I didn't, but I could do it over. Actually, I'm going to do it over with the -a option because it wouldn't make sense to use -a now if I didn't before.

Thanks for the help. If it weren't so seemingly sensitive i would just try it and find out.

Oh, I also made the usb drive ext4 for the permissions. Should I have made it btrfs? I forgot about that, but it still seems like ext4 would be fine for the transfer.

1 Like

If you want a GUI for rsync, you could use grsync.

Kind of cheating, cause it's so simple.

3 Likes

I never mentioned rsync. Never used it. And if i use guis, how will I learn? I was asking about how to update 2 machines with 1 download. Should I look into rsync for that?

rsync is far more versatile.

3 Likes

I'll look it up. Thanks, @tbg .

EDIT: I see what you mean...double thanks...

3 Likes

I'm shocked it was that easy. Rsync has a hell of a man page that took me a while to decipher but, in the end, all it took was a

rsync -a

to copy the files onto a btrfs USB drive and then the same to copy it to /var/cache/pacman/pkg. I have a feeling an ext4 drive may have worked too, but I was tired of reading and played it safe. I needed over a gig to update before the transfer and when I updated after it only took 24 megabytes to get me updated. Thank you all for the help and I guess I'll have to give the solution to @tbg for telling me about the rsync program, but I wish I could check more than one. You guys are awesome.

3 Likes

tldr rsync :wink:

2 Likes

Use grsync to find the settings you need, run and copy the formula.
image

rsync -r -t -p -o -g -v --progress --delete --ignore-existing -H --existing --partial -s /home/sgs/leer /home/garuda
4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.