Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

The problem is simple - I have a .deb package and I want to install it on my Arch Linux. Is this possible? If yes, how?

share|improve this question
2  
Note that .deb files are just archives that can be uncompressed on any system. Depending on how complex the installation process is, that might be enough to "install" it. –  Michael Kjörling Jul 18 '13 at 20:48

2 Answers 2

up vote 12 down vote accepted

Is it possible? Yes. Is it a good idea? That depends. You would only really need to do this if the application only exists as a .deb package. It is much more likely that you can just grab the upstream source and write a simple PKGBUILD to install it with pacman.

You should also search the AUR to ensure that someone hasn't done this already.

share|improve this answer
    
Note, that even if a source package is not provided (or easily accessible), .deb files are easily extracted with libarchive. And, makepkg uses bsdtar (which uses libarchive) by default to extract sources in a PKGBUILD. The result of this dependency chain is that you can easily write PKGBUILDs that make use of .deb archives as source files. :D –  HalosGhost Jul 27 at 0:42

dpkg for Arch exists. You should be able to install .deb packages on arch, but you should also not use it instead of pacman, so just use it for selected few packages.

The default command looks like:

# dpkg -i package.deb
share|improve this answer
    
Using an alternate package manager, though an option, is not the correct solution. The correct solution is to write a PKGBUILD to generate a pacman-native package. –  HalosGhost Jul 27 at 0:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.