You are not logged in.

#1 2025-05-07 06:31:07

isom7rphism
Member
Registered: 2025-03-30
Posts: 3

Pacman Refresh Behavior

Consider the following scenario:

1) My roommate goes on a road trip to another state.
2) No issues downloading packages while out of town.
3) When he comes back, he tries to install fastfetch, but error.
4) I tell him to sync, sysupgrade, and force refresh ( pacman -Syyu ).
5) The install now works.

The curious thing is, he said he ran this command yesterday while he was out of state. But fastfetch received its last update in its repo about a week ago (*).

Not looking for specific answer, but just intuition/ideas as to why (4) fixed the issue given (*) is true.

Offline

#2 2025-05-07 13:58:13

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,321

Re: Pacman Refresh Behavior

Please post actual error messages, don't tell us there is one.

My guess:
Pacman package versions aren't kept in the repos forever, once nothing depends on them anymore they are dropped.
Pacman, knowing that the newest package version can't be installed due to it's dependencies being too old (or just simply not knowing that a newer version exists), will try to download a older version which doesn't exist in the repo anymore.

Whatever you do, don't do partial system upgrades, they might temporarily fix that without updating but may break stuff in the long run.
Also, Arch Linux is a rolling release distro, you are encouraged to update regularly, what's your problem with it?

OT: -Syu is sufficient most of the time, unless you want to force a refresh even though it might not be necessary. Saves time (repo database downloads are always the slowest)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#3 2025-05-07 15:20:05

isom7rphism
Member
Registered: 2025-03-30
Posts: 3

Re: Pacman Refresh Behavior

jl2 wrote:

Please post actual error messages, don't tell us there is one.

I am not looking for a solution or specific answer, hence why I left out details. I am interested about what direction others think in more than anything.

jl2 wrote:

will try to download a older version which doesn't exist in the repo anymore.

If this is true, that's an exceptional design choice. Very cool to me.

jl2 wrote:

what's your problem with it?

None. smile

Thanks for your time.

Last edited by isom7rphism (2025-05-07 15:20:20)

Offline

#4 2025-05-07 15:43:30

mithrial
Member
Registered: 2017-03-05
Posts: 151

Re: Pacman Refresh Behavior

You have to update the local database. How else would pacman know which packages exist and in which version? Always use  pacman -Syu to update and or install packages.

If you still get outdated packages, your chosen mirror is not up-to-date.

Offline

#5 2025-05-07 16:03:10

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 272

Re: Pacman Refresh Behavior

https://wiki.archlinux.org/title/Pacman

Here's some further reading, but as others have said, if your database says a package is on version 2 and the mirror has version 3 you won't find version 2, so you sync and then install. You can do that with the same command you install the program of choice.


Ryzen 7 9850X3D | AMD 7800XT | KDE Plasma

Offline

#6 2025-05-07 20:50:57

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

Re: Pacman Refresh Behavior

I am not looking for a solution or specific answer, hence why I left out details. I am interested about what direction others think in more than anything.

he said he ran this command yesterday while he was out of state.

Everybody_Lies_-_Poster_Art_From_House_MD_-_Tallenge_TV_Shows_Collection_512x512.jpg?v=1570046017

Check the pacman log for what *actually* has happened?

Online

#7 2025-05-07 21:01:27

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,321

Re: Pacman Refresh Behavior

God damn it I hate that guy.


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

#8 2025-05-08 13:56:24

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

Re: Pacman Refresh Behavior

The actor, archetype, character, interpretation or just feeling inferior because of him?
---
- Jeeves and Wooster, you can thank me later
- Spoiler: he's Sherlock Holmes
- He's meant to be an unlikable jerk
- I think Laurie did a fine Job at that
- Well, too bad tongue

Online

#9 2025-05-08 17:44:13

jl2
Member
From: 47° 18' N 8° 34' E
Registered: 2022-06-01
Posts: 1,321

Re: Pacman Refresh Behavior

seth wrote:

The actor, archetype, character, interpretation or just feeling inferior because of him?

yes.

Last edited by jl2 (2025-05-08 17:44:43)


Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...

Upload longer text output like this

Offline

Board footer

Powered by FluxBB