How to install apt in Fedora Linux.

How to install apt in fedora, apt, apt in fedora, Linux, tech, tutorials

Hello everyone. Fedora Linux is very interesting distribution of Linux that comes with an easy installation and a nice package manager from redhat.

The default package manager of fedora is dnf. To be honest, it's super cool. But have you ever thaught to have a flavour of Debian package manager with apt in this operating system?

This sounds too foolish but it's true that you can do it! So, let's dive into it.

Firstly you need to understand what this apt is and how it works. You can Google it or read this article : https://ubuntu.com/server/docs/package-management

Secondly, it is a big question, why you want to do it? Is it really necessarious? However, dnf is far better than apt.

Whatever, to use apt in fedora, you need to install it first. You can install via GitHub. But I will recommend you to install from the official repository. To do so, run this command on your terminal.

$ sudo dnf install apt

Apt is now successfully installed in your machine. But still you cannot use it. You need to do some configuration first. You have to create a file named sources.list in /etc/apt directory. The main Apt sources configuration file is at /etc/apt/sources.list. To do so, run the following command in terminal.

$ sudo touch /etc/apt/sources.list

Now, you need to add some apt sources, the server address as well. You can use Ubuntu's sources as well but I will personally recommend you to use the Linux Mint's one. Run the following command in terminal.

$ sudo nano /etc/apt/sources.list 

Copy the following italic paragraphs and paste it to the terminal.

deb http://packages.linuxmint.com/ isadora main upstream import

deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse

deb http://archive.canonical.com/ubuntu/ lucid partner

deb http://packages.medibuntu.org/ lucid free non-free


deb http://dl.google.com/linux/deb/ stable non-free

deb http://tw.archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse

deb http://debian.nctu.edu.tw/ubuntu/ lucid main restricted universe multiverse

deb http://free.nchc.org.tw/ubuntu/ lucid main restricted universe multiverse

deb http://deb.opera.com/opera lenny non-free

deb http://repository.glx-dock.org/ubuntu lucid cairo-dock

deb http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu lucid main


#deb http://archive.getdeb.net/ubuntu lucid-getdeb apps

#deb http://archive.getdeb.net/ubuntu lucid-getdeb games 

Now you are almost done, you need to update the database only. Run the following command in terminal.

$ sudo apt update

You are almost done. You may need to add some gpg keys as well. You can Google for it. Stay safe. Enjoy apt in fedora. 😀 👍

Post a Comment

2 Comments

Lemme know if you have any doubt.