You are not logged in.

#1 2017-01-25 06:53:31

abadojack
Member
Registered: 2014-05-26
Posts: 3

[Solved] Convert Ubuntu packages names to Arch Linux package names

Most projects on Github that have dependancies usually provide a list of Ubuntu packages and users of other GNU/Linux distros have to manually search for the names of the packages on their specific ditro repos.  For example, in Ubuntu it is golang-go  while in the Arch repo it is go. Is there an easier way to do this rather than the manual way ?

Last edited by abadojack (2017-01-25 15:29:37)

Offline

#2 2017-01-25 08:11:51

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: [Solved] Convert Ubuntu packages names to Arch Linux package names

There are large number of packages already in official repo, and many more are in aur, only in uncommon cases one has to use github sources directly.

Offline

#3 2017-01-25 10:43:53

abadojack
Member
Registered: 2014-05-26
Posts: 3

Re: [Solved] Convert Ubuntu packages names to Arch Linux package names

I'm not talking about the availabilty of packages.

Someone tells you to apt install package_name but the package has a different name in the Arch official repo. So you have to search for it manually in the Arch repos before you can
pacman -S same_package_but_different_name.

For example, when installing Go Programming language tools in Ubuntu you use apt install golang-go, but in Arch we use pacman -S go.

Offline

#4 2017-01-25 10:52:19

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] Convert Ubuntu packages names to Arch Linux package names

You should find that the majority of packages have the same name on both distros. There are a few exceptions such as Arch doesn't seperate dev packages, so foo-dev on Ubuntu would just be foo on Arch.

There isn't any automated way to compare the two, so a bit of manual searching will always be needed.

Edit - It may be possible to come up with some sort of script by querying the files a Ubuntu package provides (if this information is available online ) and then feeding it through pacman -F.

Last edited by Slithery (2017-01-25 10:55:16)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-01-25 11:33:01

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: [Solved] Convert Ubuntu packages names to Arch Linux package names

You can easily find packages in arch with

pacman -Ss 'package-to-search'

, and there is wonderful arch-wiki which will tell exactly how to install and configure most common packages. If all this fails you can ask in the forums.
For all officially supported packages, pacman will manage dependencies itself, sameway when installing from aur, dependencies are listed in PKGBUILDS and that can be managed automatically by aur-helpers.

Offline

#6 2017-01-25 15:27:52

abadojack
Member
Registered: 2014-05-26
Posts: 3

Re: [Solved] Convert Ubuntu packages names to Arch Linux package names

The Ubuntu package information is available online at http://packages.ubuntu.com. I guess i'll have to write the script.

slithery wrote:

You should find that the majority of packages have the same name on both distros. There are a few exceptions such as Arch doesn't seperate dev packages, so foo-dev on Ubuntu would just be foo on Arch.

There isn't any automated way to compare the two, so a bit of manual searching will always be needed.

Edit - It may be possible to come up with some sort of script by querying the files a Ubuntu package provides (if this information is available online ) and then feeding it through pacman -F.

Offline

#7 2021-12-11 22:13:49

carlosmag
Member
Registered: 2021-12-11
Posts: 1

Re: [Solved] Convert Ubuntu packages names to Arch Linux package names

Thanks abadojack for talking about this issue!
Indeed, this is what's been keeping me away from Arch-based distros. And it's not only the different names and the lack of an automated way to convert them. I fear that most tools are developed with apt package versions as well! So, there's always a risk that the most updated versions from Arch repos will cause other issues!

Offline

#8 2021-12-11 23:19:52

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: [Solved] Convert Ubuntu packages names to Arch Linux package names

This thread is almost five years old. Do not necrobump, especially topics marked [Solved].

Closing,

Offline

#9 2021-12-11 23:33:28

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [Solved] Convert Ubuntu packages names to Arch Linux package names

2ManyDogs wrote:

This thread is almost five years old. Do not necrobump, especially topics marked [Solved].

Closing,

It wasn't intentional. Arch's threads are too new and thus incompatible. The user's distro can only handle threads from before 2018 tongue


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB