[LINUX] Differences between yum commands and APT commands

yum command and APT command (apt-get, apt-cache, aptitude)

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.

--Package installation yum install <package name> ʻApt-get install `

--Package removal yum erase / remove <package name> ʻApt-get remove `

--Search for packages yum search <search word> ʻApt-cache search `

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.

Two package formats

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.

Recommended Posts

Differences between yum commands and APT commands
Differences between Windows and Linux directories
Differences between symbolic links and hard links
Differences between Python, stftime and strptime
Differences in authenticity between Python and JavaScript
Differences between Ruby and Python in scope
Differences in syntax between Python and Java
yum and apt update / upgrade are different
Matplotlib Basics / Differences between fig and axes
Differences between Numpy 1D array [x] and 2D array [x, 1]
Differences in multithreading between Python and Jython
Differences between Django's request.POST ['hoge'] and request.POST.get ('hoge')
Differences between Ruby and Python (basic syntax)
yum and rpm
Differences between queryStringParameters and multiValueQueryStringParameters in AWS Lambda
Summary of the differences between PHP and Python
Differences and commonalities between dict, list, and tuple types
Differences between glibc, musl libc and go resolvers
Between parametric and nonparametric
EP 3 Know the Differences Between bytes, str, and unicode
Differences between numpy and pandas methods for finding variance
A rough summary of the differences between Windows and Linux
I tried to enumerate the differences between java and python
Summary of Differences Between Ruby on Rails and Django ~ Basics ~
Studying Linux commands and frustration
Difference between process and job
Correspondence between pandas and SQL
Conversion between unixtime and datetime
Difference between "categorical_crossentropy" and "sparse_categorical_crossentropy"
Difference between regression and classification
Collaboration between PTVS and Anaconda
Connection between flask and sqlite3
Difference between np.array and np.arange
Difference between MicroPython and CPython
Cooperation between py2exe and setuptools
Boundary between C and Golang
Organize [Django] commands and roles
Difference between ps a and ps -a
Difference between return and print-Python
Summary of differences between Python and PHP (comparison table of main items)