1 Publicado por u/StompConnection ahora mismo How to force pacman to use already cached packages instead of redownloading with wget?

I am in a country with VERY poor network connectivity. Usually I get by with spaced updates around one or two weeks. But recently I installed Garuda on a new machine and every time I try to run an update, it start all over again from the first package even if it is the same version. I've never had this issue in the past using Garuda,Manjaro or pure Arch. This is my configuration in pacman.conf for wget, I need to use it instead of the default because I am under a kind of coroporate proxy:

XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

Any help would be appreciated.

Kernel: 6.1.8-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=8997af33-36c7-4010-8182-50c75cea4c05 rw [email protected]
quiet quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
loglevel=3 ibt=off
Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
Distro: Garuda Linux base: Arch Linux
Type: Laptop System: Hewlett-Packard product: HP EliteBook 8470p
v: A1029D110C serial: <superuser required> Chassis: type: 10
serial: <superuser required>
Mobo: Hewlett-Packard model: 179B v: KBC Version 42.36
serial: <superuser required> BIOS: Hewlett-Packard v: 68ICF Ver. F.45
date: 10/07/2013
ID-1: BAT0 charge: 14.8 Wh (58.3%) condition: 25.4/25.4 Wh (100.0%)
volts: 10.8 min: 10.8 model: Hewlett-Packard Primary type: Li-ion
serial: <filter> status: discharging
Info: model: Intel Core i5-3230M bits: 64 type: MT MCP arch: Ivy Bridge
gen: core 3 level: v2 built: 2012-15 process: Intel 22nm family: 6
model-id: 0x3A (58) stepping: 9 microcode: 0x21
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache:
L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB
L3: 3 MiB desc: 1x3 MiB
Speed (MHz): avg: 2993 min/max: 1200/3200 scaling: driver: intel_cpufreq
governor: schedutil cores: 1: 2993 2: 2993 3: 2993 4: 2993 bogomips: 20751
Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities: <filter>
Device-1: Intel 3rd Gen Core processor Graphics vendor: Hewlett-Packard
driver: i915 v: kernel arch: Gen-7 process: Intel 22nm built: 2012-13 ports:
active: LVDS-1 empty: DP-1, DP-2, DP-3, HDMI-A-1, HDMI-A-2, HDMI-A-3,
VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0166 class-ID: 0300
Device-2: Chicony HP HD Webcam [Fixed] type: USB driver: uvcvideo
bus-ID: 1-1.3:3 chip-ID: 04f2:b270 class-ID: 0e02
Display: x11 server: X.Org v: 21.1.6 with: Xwayland v: 22.1.7
compositor: kwin_x11 driver: X: loaded: modesetting
alternate: fbdev,intel,vesa dri: crocus gpu: i915 display-ID: :0
screens: 1
Screen-1: 0 s-res: 1600x900 s-dpi: 96 s-size: 423x238mm (16.65x9.37")
s-diag: 485mm (19.11")
Monitor-1: LVDS-1 model: AU Optronics 0x223e built: 2010 res: 1600x900
hz: 60 dpi: 132 gamma: 1.2 size: 309x174mm (12.17x6.85") diag: 355mm (14")
ratio: 16:9 modes: 1600x900
API: OpenGL v: 4.2 Mesa 22.3.3 renderer: Mesa Intel HD Graphics 4000 (IVB
GT2) direct render: Yes
Device-1: Intel 7 Series/C216 Family High Definition Audio
vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
chip-ID: 8086:1e20 class-ID: 0403
Sound API: ALSA v: k6.1.8-zen1-1-zen running: yes
Sound Server-1: PulseAudio v: 16.1 running: no
Sound Server-2: PipeWire v: 0.3.64 running: yes
Device-1: Intel 82579LM Gigabit Network vendor: Hewlett-Packard
driver: e1000e v: kernel port: 4060 bus-ID: 00:19.0 chip-ID: 8086:1502
class-ID: 0200
IF: enp0s25 state: down mac: <filter>
Device-2: Intel Centrino Ultimate-N 6300 driver: iwlwifi v: kernel pcie:
gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 24:00.0 chip-ID: 8086:422b
class-ID: 0280
IF: wlo1 state: up mac: <filter>
IF-ID-1: wgpia0 state: unknown speed: N/A duplex: N/A mac: N/A
Device-1: Broadcom HP Portable SoftSailing type: USB driver: btusb v: 0.8
bus-ID: 2-1.6:3 chip-ID: 0a5c:21e1 class-ID: fe01 serial: <filter>
Report: bt-adapter ID: hci0 rfk-id: 6 state: up address: <filter>
Local Storage: total: 465.76 GiB used: 392.76 GiB (84.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: HGST (Hitachi) model: HTS725050A7E630
size: 465.76 GiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
type: HDD rpm: 7200 serial: <filter> rev: B550 scheme: MBR
ID-1: / raw-size: 48.53 GiB size: 48.53 GiB (100.00%)
used: 15.15 GiB (31.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-2: /home raw-size: 409.18 GiB size: 401.69 GiB (98.17%)
used: 377.62 GiB (94.0%) fs: ext4 dev: /dev/sda3 maj-min: 8:3
ID-3: /var/log raw-size: 48.53 GiB size: 48.53 GiB (100.00%)
used: 15.15 GiB (31.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
ID-4: /var/tmp raw-size: 48.53 GiB size: 48.53 GiB (100.00%)
used: 15.15 GiB (31.2%) fs: btrfs dev: /dev/sda1 maj-min: 8:1
Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: zram size: 15.49 GiB used: 5.44 GiB (35.1%)
priority: 100 dev: /dev/zram0
System Temperatures: cpu: 76.0 C mobo: N/A
Fan Speeds (RPM): N/A
Processes: 478 Uptime: 1d 16h 43m wakeups: 6 Memory: 15.49 GiB
used: 12.26 GiB (79.1%) Init: systemd v: 252 default: graphical
tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7 Packages: pm: pacman
pkgs: 1665 libs: 348 tools: octopi,paru,yay Shell: fish v: 3.6.0
running-in: yakuake inxi: 3.3.24
Garuda (2.6.14-1):
System install date:     2023-01-20
Last full system update: 2023-01-27
Is partially upgraded:   Yes
Relevant software:       snapper NetworkManager mkinitcpio
Windows dual boot:       <superuser required>
Failed units:

Hi @MiguelH, this article describes how to configure offline package installation and installation from cache: Offline installation - ArchWiki


Thanks!! this article helped me come with a permanent solution for my current situation. :hugs:

1 Like

Amigo, I avoid a similar and unneccessary re-download of packages which were already downloaded by passing ' --needed' to pacman or paru. I am not sure if this works for 'garuda-update', though...

In other words:

pacman -Syu --needed


paru -Syu --needed

Hope that this helps.


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