You are not logged in.

#1 2022-08-01 10:49:16

user456132
Member
Registered: 2022-08-01
Posts: 14

I'm not able to install packages without upgrading the entire system

Hi there. I have arch linux installed as a virtual machine and I use it from time to time. It's okay for me to have not fully up-to-date packages and kernel in that system. After a while when I try to install some packages it requires me to update packages it depends on, because pacman installs the latest version of a package that may depend on newer versions of dependencies. It may be annoying because sometimes it requires me to update such a low level packages like glibc, which can break dependent packages and sometimes I end up with upgrading the entire system.
I wonder if there is a way to install package version that match current system environment, so it depends on package versions that are already installed and not requires me to upgrade anything else?
Thanks in advance!

P.S.: I know that upgrading the entire system is taking less than 20 minutes, but sometimes I use the system once a month and I don't want to wait for the full system upgrade to install a small single package.

Offline

#2 2022-08-01 11:58:00

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,573
Website

Re: I'm not able to install packages without upgrading the entire system

If you don't want to update the entire system, you're using tho wrong distro.

https://wiki.archlinux.org/title/System … nsupported


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2022-08-01 12:08:04

user456132
Member
Registered: 2022-08-01
Posts: 14

Re: I'm not able to install packages without upgrading the entire system

WorMzy wrote:

If you don't want to update the entire system, you're using tho wrong distro.

https://wiki.archlinux.org/title/System … nsupported

Got it, thanks

Offline

#4 2022-08-01 14:50:59

jonno2002
Member
Registered: 2016-11-21
Posts: 870

Re: I'm not able to install packages without upgrading the entire system

add this to the end of your '/etc/pacman.d/mirrorlist'

Server = https://archive.archlinux.org/packages/.all

Offline

#5 2022-08-02 10:36:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,265

Re: I'm not able to install packages without upgrading the entire system

That's not a fix and will generally lead to the same problems and depend on luck on whether you avoid an ABI break.

Offline

#6 2022-08-02 12:15:49

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: I'm not able to install packages without upgrading the entire system

V1del wrote:

That's not a fix and will generally lead to the same problems and depend on luck on whether you avoid an ABI break.

How so? You don't update your databases, so the system should be consistent.

Offline

#7 2022-08-02 12:45:14

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,265

Re: I'm not able to install packages without upgrading the entire system

Ah right, if you do consistently just -S it should be safe, sorry for the noise

Offline

#8 2022-08-02 12:53:57

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: I'm not able to install packages without upgrading the entire system

Except based on the description of the OP, they are already doing database updates without updating the system (i.e., they are doing some variation of `pacman -Sy`).

user456132 wrote:

... when I try to install some packages it requires me to update packages it depends on, because pacman installs the latest version of a package that may depend on newer versions of dependencies

This would not happen if one was just using `pacman -S $pkg` on an aging database.  The OP would either get a 404 for the package, or the succesfully downloaded package would be appropriate for the versions of dependencies already on their system.  So using the archive/.all link will result in (more) problems as this would only solve the 404 error for older packages which is not what the OP is facing.

Last edited by Trilby (2022-08-02 12:55:11)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2022-08-02 13:50:48

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,665

Re: I'm not able to install packages without upgrading the entire system

At this point, let's wait for a response from user456132.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB