主要区别是什么?ppa-purge和add-apt-repository -r之间的主要区别是什么?哪一个更好地清除残留项,为什么要使用其中一个而不是另一个?
add-apt-repository -r是否应该做ppa-purge所做的事情?
另外,两者都会从apt的密钥环中删除密钥吗?
另外,两者都会从apt的密钥环中删除密钥吗?
REPOSITORY can be either a line that can be added directly to
sources.list(5), in the form ppa:<user>/<ppa-name> for adding Personal
Package Archives, or a distribution component to enable.
In the first form, REPOSITORY will just be appended to
/etc/apt/sources.list.
In the second form, ppa:<user>/<ppa-name> will be expanded to the full
deb line of the PPA and added into a new file in the
/etc/apt/sources.list.d/ directory. The GPG public key of the newly
added PPA will also be downloaded and added to apt's keyring.
In the third form, the given distribution component will be enabled for
all sources.
和:
-r, --remove Remove the specified repository
add-apt-repository
只是在/etc/apt/sources.list
和/etc/apt/sources.list.d/
中添加和删除行。
ppa-purge
的手册上说:NAME
ppa-purge - disables a PPA and reverts to official packages
DESCRIPTION
This script provides a bash shell script capable of automatically
downgrading all packages in a given PPA back to the ubuntu versions.
You have to run it using root privileges because of the package
manager.
ppa-purge
不仅会删除PPA,还会将任何软件包降级到它们的默认版本。这在测试软件的beta版或更新版本时非常有用。ppa-purge
,目前还没有。那些密钥有害吗? - jarno
ppa-purge
来还原软件包? - Alinwndrldppa-purge
在那种情况下会删除软件包。你也可以测试一下我的版本的ppa-purge
,它包括许多改进。它还可以删除除PPA之外的其他存储库,因此也许最好将其称为remove-apt-repository
。 - jarno