yum install http://www.example.com/package.rpm 与 rpm -ivh http://www.example.com/package.rpm

yum install http://www.example.com/package.rpm 与 rpm -ivh http://www.example.com/package.rpm

这些命令有什么区别?对于相同的任务,yum 或 rpm 有什么优势吗?

yum install http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v6.12.2/cf-cli_amd64.rpm 

rpm -ivh http://go-cli.s3-website-us-east-1.amazonaws.com/releases/v6.12.2/cf-cli_amd64.rpm 

系统是CentOS7

答案1

yum是一个高级包管理器,能够解决依赖关系。这意味着需要cf-cli_amd64.rpm安装其他软件包(在大多数情况下都会发生),yum将自动检索并安装它们,而不会为用户带来任何麻烦。

相关内容