Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

77%
+5 −0
Q&A Get current server of pacman

with pacman --debug We can display the mirrors that pacman uses with the --debug option. For example, when running pacman --debug -Sy, pacman will write lines like these to standard error: debug...

posted 3y ago by Matthias Braun‭  ·  edited 3y ago by Matthias Braun‭

Answer
#4: Post edited by user avatar Matthias Braun‭ · 2021-07-25T13:34:51Z (over 3 years ago)
improve grammar, remove leftovers of a markdown link
  • # with `pacman --debug`
  • We can display the mirrors that pacman uses with the `--debug` option.
  • For example, when running `pacman --debug -Sy`, pacman will write lines like these to standard error:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • We can use grep to filter the lines containing URLs:
  • pacman --debug -Sy |& grep "url is"
  • Which will print this, in my case:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • debug: core.db.sig: url is http://mirrors.edge.kernel.org/archlinux/core/os/x86_64/core.db.sig
  • debug: extra.db: url is http://mirrors.kernel.org/archlinux/extra/os/x86_64/extra.db
  • debug: extra.db.sig: url is http://mirrors.edge.kernel.org/archlinux/extra/os/x86_64/extra.db.sig
  • debug: community.db: url is http://mirrors.kernel.org/archlinux/community/os/x86_64/community.db
  • debug: community.db.sig: url is http://mirrors.edge.kernel.org/archlinux/community/os/x86_64/community.db.sig
  • The [ampersand after the pipe](https://www.gnu.org/software/bash/manual/html_node/Pipelines.html) in the command above will also redirect the standard error stream to grep, not only standard out.
  • []()
  • # with `pacman --debug`
  • We can display the mirrors that pacman uses with the `--debug` option.
  • For example, when running `pacman --debug -Sy`, pacman will write lines like these to standard error:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • We can use grep to filter the lines containing URLs:
  • pacman --debug -Sy |& grep "url is"
  • Which prints this, in my case:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • debug: core.db.sig: url is http://mirrors.edge.kernel.org/archlinux/core/os/x86_64/core.db.sig
  • debug: extra.db: url is http://mirrors.kernel.org/archlinux/extra/os/x86_64/extra.db
  • debug: extra.db.sig: url is http://mirrors.edge.kernel.org/archlinux/extra/os/x86_64/extra.db.sig
  • debug: community.db: url is http://mirrors.kernel.org/archlinux/community/os/x86_64/community.db
  • debug: community.db.sig: url is http://mirrors.edge.kernel.org/archlinux/community/os/x86_64/community.db.sig
  • The [ampersand after the pipe](https://www.gnu.org/software/bash/manual/html_node/Pipelines.html) in the command above will also redirect the standard error stream to grep, not only standard out.
#3: Post edited by user avatar Matthias Braun‭ · 2021-07-25T11:19:17Z (over 3 years ago)
  • # with `pacman --debug`
  • We can display the mirrors that pacman uses with the `--debug` option.
  • For example, when running `pacman --debug -Syu`, pacman will write lines like these to standard error:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • We can use grep to filter the lines containing URLs:
  • pacman --debug -Sy |& grep "url is"
  • Which will print this, in my case:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • debug: core.db.sig: url is http://mirrors.edge.kernel.org/archlinux/core/os/x86_64/core.db.sig
  • debug: extra.db: url is http://mirrors.kernel.org/archlinux/extra/os/x86_64/extra.db
  • debug: extra.db.sig: url is http://mirrors.edge.kernel.org/archlinux/extra/os/x86_64/extra.db.sig
  • debug: community.db: url is http://mirrors.kernel.org/archlinux/community/os/x86_64/community.db
  • debug: community.db.sig: url is http://mirrors.edge.kernel.org/archlinux/community/os/x86_64/community.db.sig
  • The [ampersand after the pipe](https://www.gnu.org/software/bash/manual/html_node/Pipelines.html) in the command above will also redirect the standard error stream to grep, not only standard out.
  • []()
  • # with `pacman --debug`
  • We can display the mirrors that pacman uses with the `--debug` option.
  • For example, when running `pacman --debug -Sy`, pacman will write lines like these to standard error:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • We can use grep to filter the lines containing URLs:
  • pacman --debug -Sy |& grep "url is"
  • Which will print this, in my case:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • debug: core.db.sig: url is http://mirrors.edge.kernel.org/archlinux/core/os/x86_64/core.db.sig
  • debug: extra.db: url is http://mirrors.kernel.org/archlinux/extra/os/x86_64/extra.db
  • debug: extra.db.sig: url is http://mirrors.edge.kernel.org/archlinux/extra/os/x86_64/extra.db.sig
  • debug: community.db: url is http://mirrors.kernel.org/archlinux/community/os/x86_64/community.db
  • debug: community.db.sig: url is http://mirrors.edge.kernel.org/archlinux/community/os/x86_64/community.db.sig
  • The [ampersand after the pipe](https://www.gnu.org/software/bash/manual/html_node/Pipelines.html) in the command above will also redirect the standard error stream to grep, not only standard out.
  • []()
#2: Post edited by user avatar Matthias Braun‭ · 2021-07-25T11:16:45Z (over 3 years ago)
explain |&
  • # with `pacman --debug`
  • We can display the mirrors that pacman uses with the `--debug` option.
  • For example, when running `pacman --debug -Syu`, pacman will write lines like these to standard error:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • We can use grep to filter the lines containing URLs:
  • pacman --debug -Syu |& grep "url is"
  • Which will print this, in my case:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • debug: core.db.sig: url is http://mirrors.edge.kernel.org/archlinux/core/os/x86_64/core.db.sig
  • debug: extra.db: url is http://mirrors.kernel.org/archlinux/extra/os/x86_64/extra.db
  • debug: extra.db.sig: url is http://mirrors.edge.kernel.org/archlinux/extra/os/x86_64/extra.db.sig
  • debug: community.db: url is http://mirrors.kernel.org/archlinux/community/os/x86_64/community.db
  • debug: community.db.sig: url is http://mirrors.edge.kernel.org/archlinux/community/os/x86_64/community.db.sig
  • # with `pacman --debug`
  • We can display the mirrors that pacman uses with the `--debug` option.
  • For example, when running `pacman --debug -Syu`, pacman will write lines like these to standard error:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • We can use grep to filter the lines containing URLs:
  • pacman --debug -Sy |& grep "url is"
  • Which will print this, in my case:
  • debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
  • debug: core.db.sig: url is http://mirrors.edge.kernel.org/archlinux/core/os/x86_64/core.db.sig
  • debug: extra.db: url is http://mirrors.kernel.org/archlinux/extra/os/x86_64/extra.db
  • debug: extra.db.sig: url is http://mirrors.edge.kernel.org/archlinux/extra/os/x86_64/extra.db.sig
  • debug: community.db: url is http://mirrors.kernel.org/archlinux/community/os/x86_64/community.db
  • debug: community.db.sig: url is http://mirrors.edge.kernel.org/archlinux/community/os/x86_64/community.db.sig
  • The [ampersand after the pipe](https://www.gnu.org/software/bash/manual/html_node/Pipelines.html) in the command above will also redirect the standard error stream to grep, not only standard out.
  • []()
#1: Initial revision by user avatar Matthias Braun‭ · 2021-07-25T11:12:22Z (over 3 years ago)
# with `pacman --debug`

We can display the mirrors that pacman uses with the `--debug` option.

For example, when running `pacman --debug -Syu`, pacman will write lines like these to standard error:

    debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db


We can use grep to filter the lines containing URLs:

    pacman --debug -Syu |& grep "url is"

Which will print this, in my case:

    debug: core.db: url is http://mirrors.kernel.org/archlinux/core/os/x86_64/core.db
    debug: core.db.sig: url is http://mirrors.edge.kernel.org/archlinux/core/os/x86_64/core.db.sig
    debug: extra.db: url is http://mirrors.kernel.org/archlinux/extra/os/x86_64/extra.db
    debug: extra.db.sig: url is http://mirrors.edge.kernel.org/archlinux/extra/os/x86_64/extra.db.sig
    debug: community.db: url is http://mirrors.kernel.org/archlinux/community/os/x86_64/community.db
    debug: community.db.sig: url is http://mirrors.edge.kernel.org/archlinux/community/os/x86_64/community.db.sig