I used it without knowing it, or I thought it wouldn't come out often I would like to summarize the yum command and APT commands. Both are used to manage packages with commands that are common in researching Linux.
yum install <package name>
yum erase / remove <package name>
--Search for packages
yum search <search word>
There are also commands such as rpm and dpkg that are similar to these commands.
These commands can also manage packages, but compared to yum commands and APT commands. Few people now use it because it is low-performance and you have to manually resolve the dependencies yourself.
This is because the yum command is the rpm command, and the APT command is the dpkg command. Because it is, there is no need to use it.
Now let's talk about the differences between yum commands and apt commands.
The mainstream package file formats in Linux today can be broadly divided into two types.
|Package file format||Distribution||Package management command|
|Red Hat format(.rpm)||Red Hat Enterprise Linux, CentOs||rpm, yum command|
|Debian format(.deb)||Debian GNU, Ubuntu||dpkg, APT commands|
The difference between the yum command and the APT command, or the rpm command and the dpkg command is this ** difference in package format **.
If you are using a Debian-style distribution such as Ununtu, you can use APT commands, and if you are using a Red Hat-style distribution such as CentOs, you can use the yum command.
Basically, packages that can be installed with apt-get can also be installed with the yum command, so you can use the command that suits your environment. However, please note that the package name may be slightly different.