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

Archives

Pages

Powered by Movable Type 7.0.4

April 2019

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        

Recent Assets

  • oppo 350.jpg
  • oppo 357.jpg
  • oppo 353.jpg
  • oppo 345.jpg
  • oppo 343.jpg
  • oppo 342.jpg
  • oppo 340.jpg
  • QQ图片20181209001102.png
  • oppo 336.jpg
  • oppo 334.jpg
Creative Commons License
This blog is licensed under a Creative Commons License.

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.