Reflector: Improve Your Package Download Speeds On Arch

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

ความคิดเห็น • 19

  • @vahidss
    @vahidss 4 ปีที่แล้ว +4

    Hi. So the closest servers are not necessarily the fastest? Can a server from another country be faster?

    • @Mpdarkguy
      @Mpdarkguy 4 ปีที่แล้ว +1

      It's the whole nebula of ISPs, routing, bandwidth and stuff.

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว +5

      Basic example but let's say you have 2 mirrors, one in your country, one somewhere else. For the one somewhere else, the routers between you and this mirror are all modern fast routers. For the one in your country, one of the routers is getting a bit old and cuts the connection speed in half. A connection to a server is only as fast as the slowest link.

    • @Mpdarkguy
      @Mpdarkguy 4 ปีที่แล้ว +1

      @@BrodieRobertson good explanation, I was about as lazy as the guys who made that manpage lel

    • @humm535
      @humm535 4 ปีที่แล้ว +6

      Even better example: You have a Windows box as a mirror, connected via one 1-metre LAN cable directly to your computer, and you have a Linux box as mirror somewhere in the arctica, connected over the Internet via old copper cables. The Linux mirror will be faster.

  • @craigw4644
    @craigw4644 4 ปีที่แล้ว +3

    Thanks, I've used reflector before, but generally just during an install to week down the stock list. Never though much about using it for a tune up. Love Linux, always learning something each day.

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว +1

      It's made my installs so much quicker, but as a few other people mentioned you can also use pacman-mirrorlist for this apparently.

  • @00nemin
    @00nemin 4 ปีที่แล้ว +2

    Hey, the guy who wrote the manpage here. I'm not affiliated with the guy who made this app in any way, I was just a bit pissed that I had to go to the Arch Wiki to copy&paste the basic functionality of the program, because it had no "simple" help screen at all.
    So I figured, hey what the hell and sent him an email asking whether he'd be willing to accept a manpage demonstrating basic behavior. He gave me the greenlight, so since then it is bundled with the app.
    It is admittedly very basic, but I figured since the --help option already explains what the switches do, there's no reason to duplicate that knowledge, when for most people the first few lines in the manpage will be enough and those who need more will read the --help text.
    Anyway, it was an entertaining rant and I hope it clears it up a bit.

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว +2

      Hey it's cool that you can accept a bit of a joke, I get that it doesn't make sense to duplicate the information I've just never seen an application setup like this.

  • @friedrichdergroe9664
    @friedrichdergroe9664 2 ปีที่แล้ว

    In the pacman config file, there is also a setting for the number of concurrent downloads. I think it's 5 or 6 by default, but I've bumped mine up to 50 to 100. Downloads are insanely fast, but I recommend using lots of mirrors to ease the bandwidth loads on individual servers.

  • @RedFenceAnime
    @RedFenceAnime 4 ปีที่แล้ว +7

    I thought pacman-mirrors or rankmirrors could already do this.
    sudo pacman-mirrors --fasttrack

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว

      I found out about this program from the Arch wiki when looking into mirrors, maybe it needs a bit of an update to mention that you don't actually need this.

    • @nilz91
      @nilz91 4 ปีที่แล้ว +1

      this is a manjaro thing. there is a pacman-mirrorlist in official repo but this is just a "list", not sorted in any way, shape or form

  • @davidnagy1046
    @davidnagy1046 4 ปีที่แล้ว

    EndeavourOS seems to be working really well

  • @mikablep
    @mikablep 4 ปีที่แล้ว

    it says: error: target not found: reflector

  • @ananthuskumar1286
    @ananthuskumar1286 4 ปีที่แล้ว +3

    Elitists use private mirror, pretty fast indeed

  • @senninscorpion
    @senninscorpion 4 ปีที่แล้ว

    "You can build the mirrorlist yourself, but it is a hassle to do" or something like that
    Well, arch can do it for you =)
    www.archlinux.org/mirrorlist/
    Having X mirrors
    I choose 6 because pacman downloads from 1 mirror at the time, so it most possibly won't run through 50 mirrors until the package is found, might change later (read below*)
    Damn, 2 minutes!
    Get 10 or 20 if you want that many mirrors and order then by latest, then fastest, also there is the flag -c (--country)
    *Pacman is going to paralelize the download from the mirrors, just like `powerpill' does with aria2c, but natively
    Didn't even noticed the hair, mine is huge too

    • @BrodieRobertson
      @BrodieRobertson  4 ปีที่แล้ว

      It's still a bit more of a hassle then just running a single command.

  • @nilz91
    @nilz91 4 ปีที่แล้ว

    "-l 20 -f 5" is all i need and put it in an alias. i dont want to see pacman jumping one mirrorlist to another so i just regenerate if thats the case.