【linux系列】dpkg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@ubuntu-22 ~]# man dpkg
...
-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.

Note: Some configuration files might be unknown to dpkg because they are created and handled separately through the configuration scripts. In that case, dpkg won't
remove them by itself, but the package's postrm script (which is called by dpkg), has to take care of their removal during purge. Of course, this only applies to files
in system directories, not configuration files written to individual users' home directories.

Purging of a package consists of the following steps:

1. Remove the package, if not already removed. See --remove for detailed information about how this is done.

2. Run postrm script.
...

# Purge an installed or already removed package. 清除已安装或已删除的软件包。

【linux系列】dpkg
http://example.com/2024/07/29/linux/【linux系列】dpkg/
作者
ningan123
发布于
2024年7月29日
许可协议