divert(Linux dpkg-divert命令怎么用)

发布时间:2025-12-10 22:51:21 浏览次数:1

Linux常用命令dpkg-pert 是Debian Linux中创建并管理一个转向(persion)列表,其使得安装文件的默认位置失效的工具。

dpkg-pert

Debian Linux中创建并管理一个转向列表

语法

dpkg-pert(选项)(参数)

选项

--add:添加一个转移文件;--remove:删除一个转移文件;--list:列出匹配的转移;--truename:对应转移文件真实文件名;--quidet:安静模式。

参数

文件:指定转移文件名。

实例

指定软件包wibble安装时,写入/usr/bin/example.foo,而不是/usr/bin/example:

dpkg-pert--packagewibble--pert/usr/bin/example.foo--rename/usr/bin/example

指定软件包wibble安装时,删除对/usr/bin/example的转移修改:

dpkg-pert--packagewibble--rename--remove/usr/bin/example

删除对/usr/bin/example的转移修改:

dpkg-pert--rename--remove/usr/bin/example

添加一个软件包安装时,写入/usr/bin/example.foo,而不是/usr/bin/example的修改:

dpkg-pert--pert/usr/bin/example.foo--rename/usr/bin/example
divert
需要做网站?需要网络推广?欢迎咨询客户经理 13272073477