rpm script can not execute

公司的sa安装机器很奇怪,rpm和screen在普通用户下都不能正常使用,看了一下screen,可以执行:
script /dev/null
来解决;但是rpm安装不会执行post以及postun段,让人匪夷所思,这里发现一种办法可解决此问题(需要root权限):
创建rpm的db信息库:
rpm --dbpath /home/cnangel/rpm_ilike/rpm -qa
安装软件
rpm --dbpath /home/cnangel/rpm_ilike/rpm -ivh /disk1/cnangel/rpmbuild/RPMS/x86_64/kfc-*.rpm --prefix /home/cnangel/kfc --nodeps
发现post段没有执行,检查脚本目录:
rpm --eval %{_tmppath}
修改该目录(假设该目录是/var/tmp)权限即可:
chmod 1777 /var/tmp
参考文档:http://www.logiqwest.com/TechnicalPapers/rpmScriptInstall.html

Monthly Archives

Pages

Powered by Movable Type 7.7.2

About this Entry

This page contains a single entry by Cnangel published on June 14, 2012 12:38 PM.

TWiki5.1.1的左侧栏修复 was the previous entry in this blog.

解决Virtualbox虚拟机时间不同步的问题 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.