我下载了微软边缘稳定版_121.0.2277.98-1_amd64.deb从互联网上,然后使用以下命令手动安装:
dpkg -i microsoft-edge-stable_121.0.2277.98-1_amd64.deb
我不知道如何删除它。“dpkg”没有在安装列表中显示它。我试过了,apt
但snap
他们无法识别它。
答案1
正如所述baeldung.com 上的这篇文章dpkg 提供了两种主要方法来卸载使用该工具安装的软件包dpkg
(而不是apt
或apt-get
):
dpkg -r <package_name>: removes the package and its associated files, but leaves configuration files
dpkg –purge <package_name>: not only removes the package but also purges its configuration files and leftover data
手册页中提供了更多信息dpkg
:
man dpkg
...
-r, --remove package...|-a|--pending
Remove an installed package. This removes everything except conffiles
and other data cleaned up by the postrm script, which may avoid having
to reconfigure the package if it is reinstalled later (conffiles are
configuration files that are listed in the DEBIAN/conffiles control
file). If there is no DEBIAN/conffiles control file nor DEBIAN/postrm
script, this command is equivalent to calling --purge. If -a or
--pending is given instead of a package name, then all packages
unpacked, but marked to be removed in file /var/lib/dpkg/status, are
removed.
-P, --purge package...|-a|--pending
Purge an installed or already removed package. This removes everything,
including conffiles, and anything else cleaned up from postrm. If -a
or --pending is given instead of a package name, then all packages
unpacked or removed, but marked to be purged in file
/var/lib/dpkg/status, are purged.