【发布时间】:2013-07-18 13:31:09
【问题描述】:
如果我的预安装脚本检查失败,我想取消安装 .deb 包。
我的预安装脚本:
#!/bin/sh
# Stop if any error
set -e
assertexists(){
# $1 File
if [ -e "$1" ]
then
echo "File existence checked for: $1"
else
echo "ERROR, file does not exist: $1"
exit 1
fi
}
assertexists "$JAVAPATH/bin/java"
当我跑步时:
dpkg -i my.deb
我看到了错误,但是当我运行时软件包显示为已安装:
dpkg --get-selections
有没有办法取消preinst里面的安装?
【问题讨论】:
标签: debian installation-package