What happens on updating pacman-mirrorlist?

(1/2) Update pacman-mirrorlist [------------------------------] 100%
Warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew

so without any intervention, nothing will change on the system at all, only if you will use it manually and uncomment servers by hand or with a script and move the .pacnew file to be used by pacman.

As your mirrorlist will not change and the one you have will be untouched.

We could use a hook to create a new mirrorlist if pacman-mirrorlist update is installed?

If you are using EndeavourOS reflector-auto you will be fine, as it will use latest mirrors automatic, but if you do nothing and do not update your mirrorlist regularly you may get update failing later on.

You can also use reflector-simple to create a new list with a GUI(manually also)

3 Likes

In my case /etc/pacman.d/mirrorlist is already configured but there is nothing at /etc/pacman.d/endeavouros-mirrorlist is it o’k?. Thanks.

– i forgot to said that reflector-auto is installed but not configured since i don’t know what to do at /etc/reflector-auto.conf

[judd@judd-pc ~]$ cat /etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

# With:       reflector --verbose -a1 -f10 -l70 -phttps --sort rate --save /etc/pacman.d/mirrorlist
# When:       2020-01-11 06:38:42 UTC
# From:       https://www.archlinux.org/mirrors/status/json/
# Retrieved:  2020-01-11 06:38:09 UTC
# Last Check: 2020-01-11 09:31:45 UTC

Server = https://mirror.mia11.us.leaseweb.net/archlinux/$repo/os/$arch
Server = https://arch.mirror.square-r00t.net/$repo/os/$arch
Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = https://iad.mirrors.misaka.one/archlinux/$repo/os/$arch
Server = https://mirrors.xtom.com/archlinux/$repo/os/$arch
Server = https://mirror.lty.me/archlinux/$repo/os/$arch
Server = https://archlinux.mirror.pcextreme.nl/$repo/os/$arch
Server = https://archmirror.lavatech.top/$repo/os/$arch
Server = https://mirror.i3d.net/pub/archlinux/$repo/os/$arch
Server = https://mirror.ubrco.de/archlinux/$repo/os/$arch
[judd@judd-pc ~]$ cat /etc/pacman.d/endeavouros-mirrorlist
##                                          ##
#       EndeavourOS Repository Mirrorlist    #
##                                          ##

#[endeavouros]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/endeavouros-mirrorlist

# Github
Server = https://github.com/endeavouros-team/mirrors/releases/download/mirror1/
Server = https://github.com/endeavouros-team/mirrors/releases/download/mirror2/

:slight_smile:

it said that the directory etc/pacman.d/mirrorlist do not exit.

##                                          ##
#       EndeavourOS Repository Mirrorlist    #
##                                          ##

#[endeavouros]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/endeavouros-mirrorlist

# Github
Server = https://github.com/endeavouros-team/mirrors/releases/download/mirror1/
Server = https://github.com/endeavouros-team/mirrors/releases/download/mirror2/

is what should be inside endeavouros-mirrorlist
if there is nothing you will not be able to get packages installed from our repo :wink:

1 Like

missing a leading /

sorry, i was distracted … :hot_face:

Any way, my question is if i have to do anything here?

  GNU nano 4.7         /etc/pacman.d/endeavouros-mirrorlist                     
##                                          ##
#       EndeavourOS Repository Mirrorlist    #
##                                          ##

#[endeavouros]
#SigLevel = PackageRequired
#Include = /etc/pacman.d/endeavouros-mirrorlist

# Github
Server = https://github.com/endeavouros-team/mirrors/releases/download/mirror1/
Server = https://github.com/endeavouros-team/mirrors/releases/download/mirror2/




No, It’s okay like that :slight_smile:

By the way, i’m not able to install trizen (with pacman) and i prefer it over yay because it can be used as root while yay …

I don’t know trizen, I never used it … with yay I’m fine and before with yaourt it was better … :slight_smile:

Well, I don’t know if it is good idea but i decided for this:

[root@keos-pc keos]# yay -S trizen
Please avoid running yay as root/sudo.
:: There are 2 providers available for trizen:
:: Repository AUR
    1) trizen 2) trizen-git 

Enter a number (default=1): 1
==> Refusing to install AUR Packages as root, Aborting.
[root@keos-pc keos]# sudo yay -S trizen
Please avoid running yay as root/sudo.
:: There are 2 providers available for trizen:
:: Repository AUR
    1) trizen 2) trizen-git 

Enter a number (default=1): 
==> Refusing to install AUR Packages as root, Aborting.
[root@keos-pc keos]# exit
exit
[keos@keos-pc ~]$ yay -S trizen
:: There are 2 providers available for trizen:
:: Repository AUR
    1) trizen 2) trizen-git 

Enter a number (default=1): 
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo: 25]  pacutils-0.9.0-1  perl-encode-locale-1.05-5  perl-http-date-6.05-1  perl-file-listing-6.04-6  perl-html-tagset-3.20-8  perl-html-parser-3.72-8  perl-lwp-mediatypes-6.02-6  perl-io-html-1.001-5  perl-http-message-6.18-3  perl-http-cookies-6.08-1  perl-http-daemon-6.01-7  perl-http-negotiate-6.01-6  perl-net-http-6.19-2  perl-try-tiny-0.30-3  perl-www-robotrules-6.02-6  perl-libwww-6.43-1  perl-log-message-0.08-5  perl-log-message-simple-0.10-5  perl-term-ui-0.46-5  perl-json-2.97001-1  perl-data-dump-1.23-5  perl-net-ssleay-1.85-4  perl-io-socket-ssl-2.066-1  perl-lwp-protocol-https-6.07-3  perl-term-readline-gnu-1.36-3
[Aur: 1]  trizen-1:1.62-1

:: Downloaded PKGBUILD (1/1): trizen
  1 trizen                           (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==> 1
diff --git /home/keos/.cache/yay/trizen/PKGBUILD /home/keos/.cache/yay/trizen/PKGBUILD
new file mode 100644
index 0000000..e14a507
--- /dev/null
+++ /home/keos/.cache/yay/trizen/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Trizen <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>
+
+pkgname=trizen
+pkgver=1.62
+pkgrel=1
+epoch=1
+pkgdesc="Trizen AUR Package Manager: lightweight pacman wrapper and AUR helper."
+arch=('any')
+url="https://github.com/trizen/${pkgname}"
+license=('GPL3')
+
+depends=(
+         'git'
+         'pacutils'
+         'perl>=5.20.0'
+         'perl-libwww'
+         'perl-term-ui'
+         'pacman'
+         'perl-json'
+         'perl-data-dump'
+         'perl-lwp-protocol-https'
+         'perl-term-readline-gnu'
+        )
+
+optdepends=(
+            'highlight: for syntax highlighting'
+            'perl-json-xs: faster JSON deserialization'
+            #'perl-term-readline-gnu: better STDIN support'
+           )
+
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/trizen/${pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('f0f172abc0391cf6f210fb9d4412c6f08125e7da0493d00e330629da01b4b9ab')
+
+package() {
+  cd "$pkgname-$pkgver"
+  install -m 755 -D $pkgname "$pkgdir/usr/bin/$pkgname"
+  install -m 644 -D "trizen.1" "$pkgdir/usr/share/man/man1/trizen.1"
+  install -m 644 -D "zsh.completion" "$pkgdir/usr/share/zsh/site-functions/_trizen"
+  install -m 644 -D "bash.completion" "$pkgdir/usr/share/bash-completion/completions/trizen"
+  install -m 644 -D "fish.completion" "$pkgdir/usr/share/fish/vendor_completions.d/trizen.fish"
+}

==> Proceed with install? [Y/n] 
:: Parsing SRCINFO (1/1): trizen
[sudo] password for keos: 
resolviendo dependencias...
buscando conflictos entre paquetes...

Paquetes (25) pacutils-0.9.0-1  perl-data-dump-1.23-5
              perl-encode-locale-1.05-5  perl-file-listing-6.04-6
              perl-html-parser-3.72-8  perl-html-tagset-3.20-8
              perl-http-cookies-6.08-1  perl-http-daemon-6.01-7
              perl-http-date-6.05-1  perl-http-message-6.18-3
              perl-http-negotiate-6.01-6  perl-io-html-1.001-5
              perl-io-socket-ssl-2.066-1  perl-json-2.97001-1
              perl-libwww-6.43-1  perl-log-message-0.08-5
              perl-log-message-simple-0.10-5  perl-lwp-mediatypes-6.02-6
              perl-lwp-protocol-https-6.07-3  perl-net-http-6.19-2
              perl-net-ssleay-1.85-4  perl-term-readline-gnu-1.36-3
              perl-term-ui-0.46-5  perl-try-tiny-0.30-3
              perl-www-robotrules-6.02-6

Tamaño total de la descarga:    1.15 MiB
Tamaño total de la instalación:  3.28 MiB

:: ÂżContinuar con la instalaciĂłn? [S/n] 
:: Obteniendo los paquetes...
 perl-encode-loca...    10.8 KiB  36.8 KiB/s 00:00 [----------------------] 100%
 perl-http-date-6...     9.5 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-file-listin...     8.3 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-html-tagset...    10.9 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-html-parser...    79.4 KiB   993 KiB/s 00:00 [----------------------] 100%
 perl-lwp-mediaty...    18.6 KiB  4.54 MiB/s 00:00 [----------------------] 100%
 perl-io-html-1.0...    13.4 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-http-messag...    74.1 KiB   494 KiB/s 00:00 [----------------------] 100%
 perl-http-cookie...    21.7 KiB  3.03 MiB/s 00:00 [----------------------] 100%
 perl-http-daemon...    15.1 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-http-negoti...    12.1 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-net-http-6....    22.7 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-try-tiny-0....    18.4 KiB  6.00 MiB/s 00:00 [----------------------] 100%
 perl-www-robotru...    12.2 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-libwww-6.43...   135.7 KiB  2.65 MiB/s 00:00 [----------------------] 100%
 perl-net-ssleay-...   216.9 KiB  1226 KiB/s 00:00 [----------------------] 100%
 perl-io-socket-s...   138.7 KiB   651 KiB/s 00:00 [----------------------] 100%
 perl-lwp-protoco...     7.0 KiB  0.00   B/s 00:00 [----------------------] 100%
 pacutils-0.9.0-1...   128.5 KiB  2.32 MiB/s 00:00 [----------------------] 100%
 perl-log-message...    21.9 KiB  7.13 MiB/s 00:00 [----------------------] 100%
 perl-log-message...     7.1 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-term-ui-0.4...    16.9 KiB  0.00   B/s 00:00 [----------------------] 100%
 perl-json-2.9700...    69.9 KiB  2.53 MiB/s 00:00 [----------------------] 100%
 perl-data-dump-1...    23.4 KiB  5.71 MiB/s 00:00 [----------------------] 100%
 perl-term-readli...    85.5 KiB   427 KiB/s 00:00 [----------------------] 100%
(25/25) comprobando las claves del depĂłsito        [----------------------] 100%
(25/25) verificando la integridad de los paquetes  [----------------------] 100%
(25/25) cargando los archivos de los paquetes      [----------------------] 100%
(25/25) comprobando conflictos entre archivos      [----------------------] 100%
:: Procesando los cambios de los paquetes...
( 1/25) instalando pacutils                        [----------------------] 100%
( 2/25) instalando perl-encode-locale              [----------------------] 100%
( 3/25) instalando perl-http-date                  [----------------------] 100%
( 4/25) instalando perl-file-listing               [----------------------] 100%
( 5/25) instalando perl-html-tagset                [----------------------] 100%
( 6/25) instalando perl-html-parser                [----------------------] 100%
( 7/25) instalando perl-lwp-mediatypes             [----------------------] 100%
( 8/25) instalando perl-io-html                    [----------------------] 100%
( 9/25) instalando perl-http-message               [----------------------] 100%
(10/25) instalando perl-http-cookies               [----------------------] 100%
(11/25) instalando perl-http-daemon                [----------------------] 100%
(12/25) instalando perl-http-negotiate             [----------------------] 100%
(13/25) instalando perl-net-http                   [----------------------] 100%
(14/25) instalando perl-try-tiny                   [----------------------] 100%
(15/25) instalando perl-www-robotrules             [----------------------] 100%
(16/25) instalando perl-libwww                     [----------------------] 100%
Dependencias opcionales para perl-libwww
    perl-lwp-protocol-https: for https:// url schemes [pendiente]
(17/25) instalando perl-log-message                [----------------------] 100%
(18/25) instalando perl-log-message-simple         [----------------------] 100%
(19/25) instalando perl-term-ui                    [----------------------] 100%
(20/25) instalando perl-json                       [----------------------] 100%
(21/25) instalando perl-data-dump                  [----------------------] 100%
(22/25) instalando perl-net-ssleay                 [----------------------] 100%
(23/25) instalando perl-io-socket-ssl              [----------------------] 100%
(24/25) instalando perl-lwp-protocol-https         [----------------------] 100%
(25/25) instalando perl-term-readline-gnu          [----------------------] 100%
:: Ejecutando los «hooks» de posinstalación...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Warn about old perl modules
==> Creando el paquete: trizen 1:1.62-1 (dom 12 ene 2020 08:31:41 EST)
==> Recibiendo las fuentes...
  -> Descargando trizen-1.62.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   119    0   119    0     0    461      0 --:--:-- --:--:-- --:--:--   461
100 34231    0 34231    0     0  62924      0 --:--:-- --:--:-- --:--:-- 62924
==> Validando los archivos source con sha256sums...
    trizen-1.62.tar.gz ... Aprobado
pacutils not satisfied, flushing install queue
==> Creando el paquete: trizen 1:1.62-1 (dom 12 ene 2020 08:31:43 EST)
==> Comprobando dependencias mientras se ejecuta...
==> Comprobando dependencias mientras se compila...
==> Recibiendo las fuentes...
  -> trizen-1.62.tar.gz ha sido encontrado 
==> Validando los archivos source con sha256sums...
    trizen-1.62.tar.gz ... Aprobado
==> Eliminando el directorio $srcdir/...
==> Extrayendo las fuentes...
  -> Extrayendo trizen-1.62.tar.gz con bsdtar
==> Las fuentes están listas.
==> Creando el paquete: trizen 1:1.62-1 (dom 12 ene 2020 08:31:44 EST)
==> Comprobando dependencias mientras se ejecuta...
==> Comprobando dependencias mientras se compila...
==> ADVERTENCIA: Usando el árbol existente $srcdir/
==> Entrando en entorno fakeroot...
==> Iniciando package()...
==> Depurando la instalaciĂłn...
  -> Quitando los archivos libtool...
  -> Purgando los archivos innecesarios...
  -> Quitando los archivos de las bibliotecas estáticas...
  -> Despojando los sĂ­mbolos innecesarios de los binarios y de las bibliotecas...
  -> Comprimiendo las páginas del manual y de información...
==> Buscando problemas de empaquetado...
==> Creando el paquete «trizen»...
  -> Generando el archivo .PKGINFO...
  -> Generando el archivo .BUILDINFO...
  -> Generando el archivo .MTREE...
  -> Comprimiendo el paquete...
==> Abandonando el entorno fakeroot.
==> CompilaciĂłn terminada: trizen 1:1.62-1 (dom 12 ene 2020 08:31:45 EST)
==> Limpiando...
cargando los paquetes...
resolviendo dependencias...
buscando conflictos entre paquetes...

Paquetes (1) trizen-1:1.62-1

Tamaño total de la instalación:  0.12 MiB

:: ÂżContinuar con la instalaciĂłn? [S/n] 
(1/1) comprobando las claves del depĂłsito          [----------------------] 100%
(1/1) verificando la integridad de los paquetes    [----------------------] 100%
(1/1) cargando los archivos de los paquetes        [----------------------] 100%
(1/1) comprobando conflictos entre archivos        [----------------------] 100%
:: Procesando los cambios de los paquetes...
(1/1) instalando trizen                            [----------------------] 100%
Dependencias opcionales para trizen
    highlight: for syntax highlighting
    perl-json-xs: faster JSON deserialization
:: Ejecutando los «hooks» de posinstalación...
(1/1) Arming ConditionNeedsUpdate...
[keos@keos-pc ~]$

evil :frowning:

very bad :frowning:

very good !

The rest is OK :slight_smile:

Yes i just did it to show up why i don’t like yay it force you to get out of root option …

Trizen!

[root@keos-pc keos]# trizen -Syu

		!!! You are running trizen as root !!!

:: Pacman command: /usr/bin/sudo /usr/bin/pacman -Syu
:: Sincronizando las bases de datos de los paquetes...
 core está actualizado
 extra está actualizado
 community está actualizado
 multilib está actualizado
 endeavouros            11.0 KiB  0.00   B/s 00:00 [----------------------] 100%
:: Iniciando actualizaciĂłn completa del sistema...
...el sistema ya está actualizado.
:: No AUR updates found...
[root@keos-pc keos]# 

I understand and respect your position in this regard, personally I still prefer to log out of root and as a normal user run community files.
They are just the views of each person, just that! :slight_smile:

No you’re right but I’m lazy.

https://aur.archlinux.org/packages/trizen/
is not a package it is an AUR PKGBUILD so you can not install over pacman only if you build it manually and use pacman to install the locally created package (makepkg)
And also trizen is not to run as root… it will ask for password

1 Like

Using a non-root account enhances security, that’s why it is strongly recommended.
And as @joekamprad said, certain programs (like yay) will ask for the root/sudoer password if/when they need it.

A non-root user can get elevated rights for executing a command with the following programs:

  • pkexec
  • su
  • sudo

Examples (note the syntax) of running “pacman -Syu” to do system update as a non-root user:

   sudo pacman -Syu
   su -c "pacman -Syu"     # quotes are required!
   pkexec pacman -Syu

And with yay:

   yay -Syu             # updates AUR software too
1 Like

No, i don’t understand. Are you saying that trizen is not a safe command, that it shouldn’t be used in order to install anything?.

Nothing like that! :slight_smile: You are free to use any tool you choose!

And I haven’t used trizen, so I can’t really make any comments about it.

What I am saying is:

  • Better to use non-root account in all normal operations.
  • If elevated permissions are needed, then pkexec, su and sudo are the tools.
  • yay is the AUR helper we recommend.

There are lots of other AUR helpers: https://wiki.archlinux.org/index.php/AUR_helpers
It is a good idea to look through that list.

From that list my favorite is pamac-aur-git (or pamac-aur). Having said that, I always use pacman for updating my system. :smile:

Thanks for the link, i did it know there was such an amount of options.