安装本地deb或者rpm包时,如果安装依赖包?

摩斯电码 / 2024-10-23 / 原文

示例:

sudo apt install ./cuttlefish-base_*.deb ./cuttlefish-user_*.deb

在安装的时候,会自动安装依赖,比用dpkg的安装方式更好。

与此类似,对于红帽系的,也可以使用dnf install来安装本地rpm软件包。