You are not logged in.

#1 2023-02-26 19:28:06

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

[SOLVED] Remove pacman-mirrorlist package?

Out of curiosity, can I somehow remove the pacman-mirrorlist package?  It's a hard dependency of pacman, so I presume I'd have to make a custom empty package with a corresponding provides to actually get rid of pacman-mirrorlist?  Or is there some pacman hack I could use to get rid of the package?

I'm using reflector to keep my mirrorlist updated, and recently started using the worldwide rackspace mirror, so I don't really need the mirrorlist updates from pacman-mirrorlist, and it's the only package which frequently generates .pacnew files on my system.  I presume I could just put pacman-mirrorlist into IgnorePkg to avoid this situation, but then again I figured it'd be nicer to get rid of the whole package right away.

Last edited by 3beb6e7c46a615a (2023-02-28 14:52:32)

Offline

#2 2023-02-26 19:37:44

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

Re: [SOLVED] Remove pacman-mirrorlist package?

FWIW, NoExtract would probably be better than IgnorePkg, but that doesn't really address you main question.


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

Offline

#3 2023-02-27 19:49:51

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [SOLVED] Remove pacman-mirrorlist package?

Not really wink  But thanks for the advice.  I now set both options; let's see how it goes.

I wonder why pacman-mirrorlist is still a thing… does anyone not use reflector or a worldwide mirror?

Offline

#4 2023-02-27 20:24:35

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

Re: [SOLVED] Remove pacman-mirrorlist package?

lunaryorn wrote:

I wonder why pacman-mirrorlist is still a thing… does anyone not use reflector or a worldwide mirror?

People that live in low bandwidth parts of the world. I don't care about the speed of the mirrors in the US or EU, I want to connect to local mirrors. And as there are only three of them, it makes no sense using reflector, let alone a worldwide mirror.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2023-02-27 20:59:34

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [SOLVED] Remove pacman-mirrorlist package?

I'm not sure I follow… if you're in a region with so few mirrors that it doesn't make sense to use reflector, what do you need the whole of "pacman-mirrorlist" for? 

I don't mean to argue; I'm just curious how you're dealing with the mirrorlist.  As far as I can see there are like 350 servers in there you'd never use… do you even look at mirrorlist.pacnew after pacman-mirrorlist updates?  Isn't dealing with big irrelevant diffs on that file much more hassle than setting up reflector once and for all to give you all NZ mirrors?

See, even I find those mirrorlist.pacnew annoying, and all I ever do is throw them away because my mirrorlist is either constant or managed by reflector.  But if you're handling the mirrorlist yourself wouldn't you actually need to check every mirrorlist.pacnew file just in case those three mirrors in your region ever changed?

Last edited by 3beb6e7c46a615a (2023-02-27 21:24:10)

Offline

#6 2023-02-27 22:04:54

seth
Member
Registered: 2012-09-03
Posts: 62,326

Re: [SOLVED] Remove pacman-mirrorlist package?

You wrote:

what do you need the whole of "pacman-mirrorlist" for

But your quote also wrote:

does anyone not use reflector or a worldwide mirror?

What Jason wrote:

it makes no sense using reflector, let alone a worldwide mirror.

doesn't say that pacman-mirrorlist needs to be a hard dependency for pacman.

Reflector could be on the iso and the guide telling you to run it to generate an initial list w/ reflector and pacman-mirrorlist being optional installation choices if you want to select/optimize beyond "Sheep barn I", "Sheep barn II" and "The one with the goats"

Offline

#7 2023-02-27 22:32:16

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

Re: [SOLVED] Remove pacman-mirrorlist package?

lunaryorn wrote:

what do you need the whole of "pacman-mirrorlist" for?

Well, I do occasionally travel... And, if a new mirror is added, how else would I fiind out? tongue


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2023-02-27 22:33:11

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

Re: [SOLVED] Remove pacman-mirrorlist package?

seth wrote:

and "The one with the goats"

They're alpacas, seth. We've talked about this before! tongue


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2023-02-28 07:43:15

seth
Member
Registered: 2012-09-03
Posts: 62,326

Re: [SOLVED] Remove pacman-mirrorlist package?

Sorry, I certainly didn't mean to insult your wifes tongue

But out of curiosity I found this very concerning data:
https://i.imgur.com/IqKOzMc.png
Source: https://www.stats.govt.nz/indicators/livestock-numbers

Do you understand what that means?
If this worrysome trend continues, the rest of the world will soon have to find a new trope about New Zealand!

Offline

#10 2023-02-28 14:52:15

3beb6e7c46a615a
Member
Registered: 2021-03-27
Posts: 165

Re: [SOLVED] Remove pacman-mirrorlist package?

jasonwryan wrote:
lunaryorn wrote:

what do you need the whole of "pacman-mirrorlist" for?

Well, I do occasionally travel... And, if a new mirror is added, how else would I fiind out? tongue

Well, there's this tool which automatically updates your mirrorlist with the up to date mirror data… ;p

SCNR smile

It'd be nice if pacman-mirrorlist was an optdepends of pacman, but then again I really have more important problems ^^

Thanks for your help; I'll mark this as solved.

Offline

#11 2023-02-28 15:03:29

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

Re: [SOLVED] Remove pacman-mirrorlist package?

seth wrote:

... the rest of the world will soon have to find a new trope about New Zealand!

He said sheepishly.


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

Offline

#12 2025-03-15 13:46:48

probackup-nl
Member
From: Delft
Registered: 2017-11-15
Posts: 85
Website

Re: [SOLVED] Remove pacman-mirrorlist package?

It's a pity that "remove pacman-mirrorlist" package is not actually solved:

# pacman -R pacman-mirrorlist
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing pacman-mirrorlist breaks dependency 'pacman-mirrorlist' required by pacman

For non mobile high bandwidth users that use rankmirrors to create the mirrorlist, its annoying to have '/etc/pacman.d/mirrorlist.pacnew' on every update. It's annoying that pacdiff  prompts for mirrorlist, that such a user always wishes to "(R)emove".

Actually I don't ever want to download any pacman-mirrorlist. Instead a rankmirrors command/script that fetches a live list (wiki 3.1.2: Fetching and ranking a live mirror list) might create a new mirrorlist on every mirrorlist update or periodically.

For now I will use:

# nano /etc/pacman.conf
[options]
NoExtract = etc/pacman.d/mirrorlist

which will create new pacdiff prompts on each pacman upgrade. Basicly not much is improved, one frequent prompt is traded in for another less frequent one.

PS Having less pacdiff prompts encourages to user to not postpone .pacnew administrative tasks.

Last edited by probackup-nl (2025-03-15 14:13:52)

Offline

#13 2025-03-15 15:24:03

seth
Member
Registered: 2012-09-03
Posts: 62,326

Re: [SOLVED] Remove pacman-mirrorlist package?

~/bin/makepkg-dummy

#!/bin/bash
cd /tmp
echo "pkgname=$1-dummy
pkgver=1
pkgrel=1
pkgdesc='Dummy for $1'
arch=('any')
license=('dwtfyq')
provides=('$1')
conflicts=("'${provides[@]}'")" > .PGKBUILD.$1

PKGEXT=".pkg.tar" makepkg -p .PGKBUILD.$1
rm .PGKBUILD.$1

Edit: -i doesn't work here…

makepkg-dummy pacman-mirrorlist

Last edited by seth (2025-03-15 16:31:01)

Offline

#14 2025-03-15 16:27:48

cryptearth
Member
Registered: 2024-02-03
Posts: 1,374

Re: [SOLVED] Remove pacman-mirrorlist package?

although necro a two year old topic:
why is the mirrorlist in its own package anyway? what was the initial idea of it and is that still relevant?
would this make a useful contribution to get rid of that package altogether but rather make pacman depend on reflector?

Offline

#15 2025-03-15 16:38:18

seth
Member
Registered: 2012-09-03
Posts: 62,326

Re: [SOLVED] Remove pacman-mirrorlist package?

pacman "should" probably not hard-depend on either.
You need a mirrorlist, whether through that package, frequent updates from https://archlinux.org/mirrorlist/ or reflector or handcrafted or … doesn't matter.
The current approach just doesn't require people to worry/care - you get a mirrorlist shoveled onto your system and frequent inert .pacnew's when customizing it.

Offline

#16 2025-03-16 11:29:55

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,478

Re: [SOLVED] Remove pacman-mirrorlist package?

Originally the mirrorlist was included with the pacman package.
Everytime the mirrorlist changed pacman required an update, moving the mirrorlist to its own package in 2008 improved things by a lot .

The Arch-dev-public and Pacman-dev mailing list archives from that period may shed light on the reasons for doing it this way.

Moderator Note : Closing this old thread.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB