Skip to content

Instantly share code, notes, and snippets.

@bryanbellato
Last active November 27, 2024 09:08
Show Gist options
  • Save bryanbellato/d141ebedb6c85c8b81c6e3d6b48c44bf to your computer and use it in GitHub Desktop.
Save bryanbellato/d141ebedb6c85c8b81c6e3d6b48c44bf to your computer and use it in GitHub Desktop.
How to enable Arch libraries on Artix Linux /// Como habilitar bibliotecas do Arch no Artix Linux
EN-US:
It is very common for Arch Linux users to migrate to Artix and encounter the absence of certain libraries commonly used for installing a wide variety of packages. When facing any problem or doubt while using an operating system, should we consult the Wiki? Certainly, the Arch and Artix WIKI is very clear, well-made, and instructive.
But the purpose here will be a simple and quick guide for you who don't want to spend much time. Just follow the steps, and you’ll have these libraries updated easily.
1. Edit your pacman.conf
You can find this file at /etc/pacman.conf.
You will find the "[system]", "[world]", and "[galaxy]" libraries already enabled. The "[lib32]" will be disabled.
You can enable it by removing the quotes.
#[lib32] ==========>>> [lib32]
#Include = /etc/pacman.d/mirrorlist ==========>>> Include = /etc/pacman.d/mirrorlist
After that, paste the following below it:
# Arch
[extra]
Include = /etc/pacman.d/mirrorlist-arch
[multilib]
Include = /etc/pacman.d/mirrorlist-arch
2. Edit your mirrorlist
Once that’s done, you will create a file named mirrorlist-arch in the /etc/pacman.d/ directory.
After that, you will generate a mirrorlist for Arch Linux. You can generate one through this link: https://github.com/archlinux/svntogit-packages/raw/packages/pacman-mirrorlist/trunk/mirrorlist.
Copy this mirrorlist into the file you created.
Finally, remove the comments on the servers that you would like to synchronize and save the file.
3. Update your system.
Now, you just need to type sudo pacman -Sy, and everything will be fully functional.
PT-BR:
É muito comum usuários do Arch Linux migrarem ao Artix e se depararem com a falta de certas bibliotecas que comumente usam-se para a instalação de uma imensa variedade de pacotes.
Em qualquer problema ou dúvida ao usar um sistema operacional, devemos consultar a Wiki? Certamente, a WIKI do Arch e do Artix é muito clara, bem feita e didática.
Mas o propósito disso aqui vai ser um guia simples e rápido para você que não quer gastar muito tempo. Apenas siga os passos e terá essas bibliotecas atualizadas facilmente.
1. Edite o seu pacman.conf
Você pode encontrar esse arquivo em /etc/pacman.conf
Você encontrarvá as bibliotecas "[system]", "[world]" e "[galaxy]" já habilitadas. A "[lib32]" estará desabilitada.
Você poderá habilitar ela removendo as aspas.
#[lib32] ==========>>> [lib32]
#Include = /etc/pacman.d/mirrorlist ==========>>> Include = /etc/pacman.d/mirrorlist
Após, cole em baixo dela o seguinte:
# Arch
[extra]
Include = /etc/pacman.d/mirrorlist-arch
[multilib]
Include = /etc/pacman.d/mirrorlist-arch
2. Edite o seu mirrorlist
Feito isso, você irá criar um arquivo chamado "mirrorlist-arch" no diretório /etc/pacman.d/
Após isso, você irá gerar um mirrorlist do Arch Linux. Você poderá gerar um através desse link: https://github.com/archlinux/svntogit-packages/raw/packages/pacman-mirrorlist/trunk/mirrorlist
Copie esse mirrorlist no arquivo que você criou.
Por fim, remova os comentários dos servidores que você gostaria de sincronizar e salve o arquivo.
3. Atualize o seu sistema.
Agora você só precisa digitar "sudo pacman -Sy" e terá tudo em pleno funcionamento.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment