我有一个巨大的源代码,它想安装 YUM(Fedora、CentOS、Red hat 包管理器)显示的所有内容。
例子:
$ yum install bzip2 cpio curl curl-devel fileutils gettext-devel libtool make nmap openssl openssl-devel libxml2 libxml2-devel php php-devel php-common php-cli php-gd php-pear php-mysql php-pdo php-pecl-json mysql mysql-server mysql-devel YAML
root@sun-M14xR2:/var/tmp# apt-get install bzip2 cpio curl curl-devel fileutils gettext-devel libtool make nmap openssl openssl-devel libxml2 libxml2-devel php php-devel php-common php-cli php-gd php-pear php-mysql php-pdo php-pecl-json mysql mysql-server mysql-devel YAML
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package fileutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Unable to locate package curl-devel
E: Package 'fileutils' has no installation candidate
E: Unable to locate package gettext-devel
E: Unable to locate package openssl-devel
E: Unable to locate package libxml2-devel
E: Unable to locate package php
E: Unable to locate package php-devel
E: Unable to locate package php-common
E: Unable to locate package php-cli
E: Unable to locate package php-gd
E: Unable to locate package php-mysql
E: Unable to locate package php-pdo
E: Unable to locate package php-pecl-json
E: Unable to locate package mysql
E: Unable to locate package mysql-devel
E: Unable to locate package YAML
还有许多其他 yum 包名称。对于 Ubuntu 来说,逐一查找它们会耗费大量时间,有没有 yum 到 apt-get 包转换器?
但是我该如何为 Ubuntu apt-get 解释它呢?
答案1
很久没有尝试过这个了,但是你可以使用一个名为外星人在 ubuntu 中安装 rpm 包