Skip to content

Instantly share code, notes, and snippets.

@dbirks
Last active July 27, 2018 15:21
Show Gist options
  • Select an option

  • Save dbirks/f05d6fa07dbe5e45b1d766b4cc41eb55 to your computer and use it in GitHub Desktop.

Select an option

Save dbirks/f05d6fa07dbe5e45b1d766b4cc41eb55 to your computer and use it in GitHub Desktop.

Revisions

  1. dbirks revised this gist Jul 27, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions arch-install-notes.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,8 @@

    ### Rank repo mirrors

    `rankmirrors` is included in the `pacman-contrib` package.

    Make a backup, then run the rankmirrors script through sed to remove some extra commented-out lines.

    ```bash
  2. dbirks revised this gist Nov 2, 2017. 1 changed file with 5 additions and 2 deletions.
    7 changes: 5 additions & 2 deletions arch-install-notes.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,10 @@


    ### Rank repo mirrors
    ```

    Make a backup, then run the rankmirrors script through sed to remove some extra commented-out lines.

    ```bash
    mv /etc/pacman.d/mirrorlist{,.old}
    rankmirrors -n 5 /etc/pacman.d/mirrorlist.old > /etc/pacman.d/mirrorlist
    rankmirrors -n 5 /etc/pacman.d/mirrorlist.old | sed -e '/^##/d' > /etc/pacman.d/mirrorlist
    ```
  3. dbirks revised this gist Nov 2, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion arch-install-notes.md
    Original file line number Diff line number Diff line change
    @@ -2,5 +2,6 @@

    ### Rank repo mirrors
    ```
    rankmirrors -n 5 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
    mv /etc/pacman.d/mirrorlist{,.old}
    rankmirrors -n 5 /etc/pacman.d/mirrorlist.old > /etc/pacman.d/mirrorlist
    ```
  4. dbirks created this gist Nov 2, 2017.
    6 changes: 6 additions & 0 deletions arch-install-notes.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@


    ### Rank repo mirrors
    ```
    rankmirrors -n 5 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
    ```