rpm script can not execute

| No Comments
公司的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

Leave a comment

Archives

Pages

Powered by Movable Type 5.2.2

December 2012

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 31          

Recent Assets

  • dish_st4.png
  • dish_m5.png
  • dish_3.png
  • dish_two.png
  • dish_6.png
  • dish_1.png.png
  • 照片1028 105.jpg
  • 照片1028 088.jpg
  • 照片1028 084.jpg
  • 照片1028 081.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.