Skip to main content

Package Management in Linux Distributions

Package Management in Linux distros

In the Linux world, there are basically two different types of community-based distribution. One is  Debian based and another is based on the fedora project. Several distributions of Linux use mainly these two community distributions. Unlike some of the most popular distros like Kali, Parrot, Ubuntu, etc which uses Debian based, Redhat Enterprise Linux is based on the fedora project.

Package Management Debian based distros

Some of the most popular Debian based distros are Kali, Parrot, Ubuntu, Linux Mint, Deepin, BackTrack, Astra Linux, etc. In Debian based distributions the package management is done by apt and it is configured by default when you install the operating system. To install any package in Debian based use command: apt-get install package_name for example, apt-get install leafpad. To remove any package: apt-get remove package_name; to search for any package installed: apt-cache search package_name; to list all packages installed: apt list --installed. 

Package Management in rpm based or Fedora-based

Some of the popular rpm based distros are Redhat, Centos, Fedora, OpenSUSE Clear Linux, and Mandrake Linux. In fedora based or rpm based distros for package management, we use rpm or yum. By default, rpm is configured. But the disadvantage of using rpm is that it can only install those packages which are already present in our system and to install those packages you need to be in that directory in which packages are present. To overcome this issue yum command was introduced in fedora based Linux distros like Redhat. In the latest version of Redhat ie, Redhat 8 one more advanced command is introduced ie, dnf which does not need to be configured separately. It is configured automatically when you configure yum in your RHEL. Commands to install any package in rpm based/fedora based is: yum install package_name for example: yum install vlc; to remove any package: yum remove vlc; to list all repository: yum repolist; to check for package: yum list vlc.
In Redhat 8 other than yum, dnf is also introduced for package management. The reason for introducing dnf was that whenever you try to run yum command and if any irrelevant address is giving in repository config file then it takes lots of time to understand that and terminate the program but dnf, in this case, is much faster and efficient in solving such problems.      

Comments

Popular posts from this blog

Containerization Within Container

How to Launch Container within Container? In this article we will see how we can use the Concepts of Docker to achieve Containerization within Container. To launch another container within a running container is quite a tedious task but in this article I will show you how easily you can achieve this by applying right concepts. In this article I will be using few concepts of docker like Dockerfile , mounting volume , mounting port and few basic docker commands . Before starting with the container we need to make sure that Docker is installed and configured in our system. If docker is not configured then you can use my automated script which I made for installing and configuring docker from my GitHub Repository . After setting up with docker now we need launch a container so that we can launch another container inside it to achieve Containerization within container. There are two ways to launch container. By using docker pull command By using Dockerfile In this ...

How to Grab Someone's IP Address ?

How to Grab Anyone's IP Address? IP Address is abbreviated as Internet Protocol Address which is a unique address for all the users present on the internet. Whenever we visit any domain or click any link /images on the internet, our public IP address is being shared that source. But what if, we want someone’s IP address intentionally or we want to track someone. So in this blog I will show you how you can easily grab anyone’s IP Address just within a few steps. To grab IP address I will be using an online Web Application named Grabify IP Logger . It is an online tool that is used for IP Lookup . Before beginning with the tool it is recommended to use browser proxy or VPN . Here we have used browser proxy as you can see in the top-right corner in the image for accessing Grabify. Now we need to register ourselves in this application to use it. After registration, we have to log in to the application. After registration and login into the application, we are ready to use it. To grab...

Operating System and its Types

What is Operating System(OS)? Whenever a person starts learning about computers or any  computer course the first question he is being asked is what is Operating System (OS)? So the answer is Operating System is basically a computer program that manages all other computer program after being installed into the system from the boot menu . In simple words we can say that Operating System is a software which provides a better medium for users to interact with computers. This was all about Operating System(OS) . Now lets talk about the different types of operating systems that we use in our daily life for personal use and for different other purposes.                                                                                   Linux, Windows, Java, MacOS,...