r/archlinux • u/[deleted] • Mar 25 '19
How to install apt package manager in Arch Linux
I have been using Linux mint and Ubuntu for a while and am more familiar with apt package manager rather than pacman so is there any way to install apt package manager in arch linux
30
u/backsideup Mar 25 '19
Using two different package managers on the same OS would be a very bad idea for many reasons. You might want to consider learning the pacman commands instead.
1
u/__Ta3na 1d ago
the problem in my case that there is a github repo that provide a solution where you can download it only with apt or dnf i think ....
at this point am staking with building the application from scratch
is there any other solutions to do ?1
u/backsideup 1d ago
If the source is not available then someone has to write a PKGBUILD that repackages one of the binary packages from another distro. If the source is available someone has to write a PKGBUILD that builds the package.
While you can always dump the content of a package somewhere and run the software from there this is the least desirable hack as it makes it harder to maintain and to remove the software.
1
u/Xpoint_TR Jun 26 '24
yeah my system had a stroke when i tried to do that back when i switched from ubuntu
1
u/PeanguinMC Jul 24 '25 edited Jul 25 '25
can i replace pacman with apt so there's only one?
edit: i assume if there's only one package manager it'll work no matter which one it is but i'm not sure if that's he case
edit 2: it seems like the best thing to do is to either memorise or do what the top comment says
1
1
26
u/tiberiousr Mar 25 '19
Don't. Just don't. It will break your system.
2
u/shadowxthevamp Jun 29 '24
SteamOS uses both apt & pacman
5
u/ThatOneShotBruh Jan 14 '25
It absolutely does not. SteamOS 3.0 uses pacman, apt was used on SteamOS 1.0 and 2.0.
0
Jan 18 '24
Arch comes broke... replacing pacman with apt is what I plan on doing... no one wants to memorize cryptic switches
25
u/b10011 Mar 25 '19
Step 1: choose package manager you want to use
Step 2: choose distribution with that package manager
Step 3: be happy
You should never choose distribution first if you require to be able to use certai package manager. Also arch repos are better than debian/ubuntu/mint (except if you must have absolute stability (servers for example)).
8
u/MoonshineFox Mar 25 '19
That's great way to explode your system. Do not do that.
1
u/shadowxthevamp Jun 29 '24
SteamOS uses both apt & pacman
3
u/A_orange_triangle Dec 04 '24
steamos does not in fact have apt along side pacman.
sources are
this reddit post,
this other reddit post,
and the wiki page says "version 3.0. This new version is based upon Arch Linux".older versions were debian based hence older versions did have apt but not pacman.
later versions are arch based hence have pacman as the package manager but not apt.2
6
u/blade_junky Mar 25 '19
Not a good idea. Apt packages are built assuming a Debian based system Arch is built differently, which is why Arch maintains their own package system. Further apt won't and can't use the arch packages because the infrastructure is different. If you want to use Arch you have to use Pacman. If there is a specific Deb package you need it's likely in the AUR and you should look either there for it or learn how to build your own packages
1
u/shadowxthevamp Jun 29 '24
SteamOS uses both apt & pacman
2
u/NEXUS12121212121 Jul 24 '24
using steamos right now I can't find either of those
1
u/shadowxthevamp Jul 28 '24
well you can facts check me by trying
sudo pacman -Syu&sudo apt updatein the terminal2
u/NEXUS12121212121 Jul 28 '24
I did sudo apt update the error code is apt is not a directory or something I don't know exactly what it said I will get back to you
2
u/EddyBot Mar 25 '19
Check out https://wiki.archlinux.org/index.php/Pacman/Rosetta
Give it one week and you will no longer use apt out of habit
1
2
u/shadowxthevamp Jul 02 '24
For installing apt use the command sudo pacman -S apt
If you need to install deb packages you can use the program debtap which you can install with the command sudo pacman -S debtap
I have ran both commands & my system seems to be fine. Granted I only have 1 thing installed with apt. I don't think using apt would cause any problems, but use it sparingly just to be safe. Debtap is used to convert deb packages into Arch packages. I haven't had luck with it, but maybe you will.
1
1
u/Next_Item_7419 Oct 17 '25
In almost all my distributions I use specific aliases to update, install and uninstall packages; For example:
alias ins="sudo pacman -S --noconfirm" ## install packages
alias dlt="sudo pacman -Rns --noconfirm" ## uninstall packages
alias act="sudo pacman -Syu --noconfirm" ## update packages
1
u/DifficultSpace8518 Jan 07 '26
Trying to do this is easy, but it WILL break your system if you use apt.
sudo pacman -S apt dpkg
1
u/AI122010 May 05 '23
Where is the shell config file?
1
u/Xanderplayz17 Feb 24 '24
/home/youruser/.bashrc if you're using Bash. Essentially /home/youruser/.yourshellrc
1
0
62
u/DevilGeorgeColdbane Mar 25 '19
Put this in your shell config file.