DEV Community

nabbisen
nabbisen

Posted on • Updated on

Artix Linux: Add Arch Linux repos, extra + community

When you use Artix Linux based on Arch Linux, and some of * Arch * Linux repositories are missing with pacman in your operation system, this post might be useful.

According to Artix Linux announcement, the repositories of [extra] / [community] are disabled by default:

Artix has reached the stage where it can operate without the help of the Arch repositories, including the preparation of its installation media.

As such, all new weekly ISO images will ship without [extra], [community] and [multilib] enabled in pacman.conf.

Here shows how to enable those repositories. Well, the detail is in Artix official wiki.

First, activate Universe repository:

# nvim /etc/pacman.conf
Enter fullscreen mode Exit fullscreen mode

by appending the lines:

+ [universe]
+ Server = https://universe.artixlinux.org/$arch
+ Server = https://mirror1.artixlinux.org/universe/$arch
+ Server = https://mirror.pascalpuffke.de/artix-universe/$arch
+ Server = https://artixlinux.qontinuum.space/artixlinux/universe/os/$arch
+ Server = https://mirror1.cl.netactuate.com/artix/universe/$arch
+ Server = https://ftp.crifo.org/artix-universe/$arch
+ Server = https://artix.sakamoto.pl/universe/$arch
Enter fullscreen mode Exit fullscreen mode

Then sync:

# pacman -Sy
Enter fullscreen mode Exit fullscreen mode

Next, install artix-archlinux-support:

# pacman -Syu artix-archlinux-support
Enter fullscreen mode Exit fullscreen mode

The output was:

:: Synchronizing package databases...
 (...)
 universe is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...

Packages (3) archlinux-keyring-20230320-1  archlinux-mirrorlist-20230226-2
             artix-archlinux-support-2-1

Total Download Size:   1.16 MiB
Total Installed Size:  1.65 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 archlinux-keyrin...  1165.1 KiB   787 KiB/s 00:01 [######################] 100%
 artix-archlinux-...    14.6 KiB  71.9 KiB/s 00:00 [######################] 100%
 archlinux-mirror...     9.2 KiB  45.5 KiB/s 00:00 [######################] 100%
 Total (3/3)          1188.9 KiB   476 KiB/s 00:03 [######################] 100%
(3/3) checking keys in keyring                     [######################] 100%
(3/3) checking package integrity                   [######################] 100%
(3/3) loading package files                        [######################] 100%
(3/3) checking for file conflicts                  [######################] 100%
(3/3) checking available disk space                [######################] 100%
:: Processing package changes...
(1/3) installing archlinux-keyring                 [######################] 100%
==> Appending keys from archlinux.gpg...
==> Locally signing trusted keys in keyring...
  -> Locally signed 5 keys.
==> Importing owner trust values...
gpg: (...)
==> Disabling revoked keys in keyring...
  -> Disabled 34 keys.
==> Updating trust database...
gpg: (...)
==> Updating trust database...
gpg: next trustdb check due at 2023-07-03
(2/3) installing archlinux-mirrorlist              [######################] 100%
(3/3) installing artix-archlinux-support           [######################] 100%
Optional dependencies for artix-archlinux-support
    lib32-artix-archlinux-support: archlinux multilib support
:: Running post-transaction hooks...
(1/1) Show archlinux help...
==> Add the arch repos in pacman.conf:

#[testing]
#Include = /etc/pacman.d/mirrorlist-arch


[extra]
Include = /etc/pacman.d/mirrorlist-arch


#[community-testing]
#Include = /etc/pacman.d/mirrorlist-arch


[community]
Include = /etc/pacman.d/mirrorlist-arch


#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist-arch


#[multilib]
#Include = /etc/pacman.d/mirrorlist-arch

==> run: 'pacman-key --populate archlinux'
Enter fullscreen mode Exit fullscreen mode

Next, edit pacman.conf:

# nvim /etc/pacman.conf
Enter fullscreen mode Exit fullscreen mode

to append these lines:

+ #[testing]
+ #Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ [extra]
+ Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ #[community-testing]
+ #Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ [community]
+ Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ #[multilib-testing]
+ #Include = /etc/pacman.d/mirrorlist-arch
+ 
+ 
+ #[multilib]
+ #Include = /etc/pacman.d/mirrorlist-arch
Enter fullscreen mode Exit fullscreen mode

Then, run the command:

# pacman-key --populate archlinux
Enter fullscreen mode Exit fullscreen mode

The output was:

==> Appending keys from archlinux.gpg...
==> Updating trust database...
gpg: next trustdb check due at 2023-07-03
Enter fullscreen mode Exit fullscreen mode

That's it.
It is able now to install a package in [extra] or [community] repositories such as Deno :)

Top comments (5)

Collapse
 
conradnjogu profile image
Conrad Njogu

Thank you very much sir, I've also made an account just to tell you how you've saved me months of frustrations of finding out that artix has no official support for any office suites.

Collapse
 
nabbisen profile image
nabbisen

Hello, Conrad,
Thank you, too, for your warm comments ☺️ I'm pretty happy to know my post helped you !!

Collapse
 
tyler_fife_048805101c7fdb profile image
Tyler Fife

You could not possibly know how much this helped. I made an account strictly to tell you how helpful this is.

Collapse
 
nabbisen profile image
nabbisen

Wom, really... I'm really happy to hear it 🌟
Thank you for your good news 😄

Collapse
 
englianhu profile image
®γσ, ξηg Lιαη Ημ • Edited

I am using Axtrix-Linux-Plasma-Suite66.

:~$ sudo pacman -Syy
error: could not register 'system' database (database already registered)
error: could not register 'world' database (database already registered)
error: could not register 'galaxy' database (database already registered)
error: could not register 'lib32' database (database already registered)
:: Synchronizing package databases...
 gremlins
Enter fullscreen mode Exit fullscreen mode

Source: How can i add a repository to Artix?