免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1521 | 回复: 0
打印 上一主题 下一主题

如何动态更改特定package的pkginfo PKGINST名称? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-07-20 18:20 |只看该作者 |倒序浏览
例如
当前系统已安装了xyz 如下

pkginfo -l xyz
   PKGINST:  xyz
      NAME:  xxxxxxxxxxxxxxxxxxxxx
  CATEGORY:  application
      ARCH:  X86
   VERSION:  R1A
   BASEDIR:  /opt/xyz/
    VENDOR:  xxxxxxxxxxx
      DESC:  xxxxxxxxxxxxx
    PSTAMP:  ps stamp
  INSTDATE:  Jan 08 2010 16:05
    VSTOCK:  xxxxxxxxxxxxxxx
    STATUS:  completely installed
     FILES:        7 installed pathnames
                   2 shared pathnames
                   2 directories
                   2 executables
                  29 blocks used (approx)

现在想把系统当中的package xyz名称改为xyz_new (pkginfo 的输出显示为xyz_new)

已经作了如下更改:

1. /var/sadm/pkg/xyz/ rename to /var/sadm/pkg/xyz_new/
2. 更改/var/sadm/pkg/xyz/pkginfo 内容 xyz改为xyz_new
3. 更改/var/sadm/install/contents,xyz替换为xyz_new

但是运行 pkginfo -l xyz_new
依然提示错误信息:
ERROR: information for "xyz_new" was not found


还有什么地方需要做相应更改?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP