📜  安装 rpm fedora - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:31.060000             🧑  作者: Mango

代码示例1
sudo rpm –i sample_file.rpm
1
To install or upgrade a package, use the -U command-line option:
rpm -U filename.rpm. For example, to install the mlocate RPM used as an example in this chapter, run the following command:
rpm -U mlocate-0.22.2-2.i686.rpm. ...
rpm -Uhv mlocate-0.22.2-2.i686.rpm. ...
rpm –e package_name. ...
rpm –qa. ...
rpm –qa | more.