经常遇到在apt-get内找到了软件,但在yum里找不到,或者相反。
于是产生了这些问题:
apt-get与yum库,两者收录的软件内容、数量、广泛性都不一样吗?
在查找与安装软件的角度上来说,谁更好?
PHP中文网2017-04-17 13:26:04
…First of all, the two things are not comparable.
apt-get
is a maintenance tool under Debian/ubuntu
yum
is a maintenance tool under Redhat/CentOS
The second is naming: CentOS
usually looks like this: libxxx-devel
, Debian
usually looks like this: apt-get install libxxx-dev
According to Du Niang or Google, this is:
Compared with yum and apt-get, it is not just about comparing the number and speed of sources, nor is it just about how to solve dependencies. The issue of the pros and cons of rpm and dpkg has also been discussed and cannot be avoided. Although Debian is the only operating system that advertises GNU/Linux, for a long time, "redhat is Linux". RPM (Redhat Package Manager) is such an influence, (of course, yum comes from another distro: yellow dog) . Redhat officially announced that it will stop supporting the RPM project.
黄舟2017-04-17 13:26:04
The package management tool used by Debian/Ubuntu is apt-get, which contains far more software than Redhat/CentOS’s yum. On the famous Linux VPS provider Linode, Ubuntu is the most used operating system (more than half ), followed by Debian.
大家讲道理2017-04-17 13:26:04
I guess what you want is: compare which system software and choose the better one.
In general, apt-get, that is, Debian-based software updates such as Ubuntu are relatively fast.
yum, which is based on redhat and centos, will generally release a stable version. The general idea is that the update is relatively slow.
Normally speaking, if the software cannot be found, you should consider manual compilation, which is the fastest and most effective method.