HPUX——安装bash

本人职场小白,此篇为工作中处理问题的记录,以备往后查询,如有不对之处或抄袭之嫌,请告知与我,即刻改正。

HPUX 11.31 安装bash

安装bash

需要安装一些依赖包
可以去此网站去下载这些包
http://hpux.connect.org.uk/

/tmp下新建一个目录存放这些依赖包

mkdir /tmp/bash_depot

将下载好的依赖包传到刚刚建立的目录下

然后开始安装,-s后面要跟绝对路径

swinstall -s /tmp/bash-depot/readline-7.0.003-ia64_64-11.31.depot readline
swinstall -s /tmp/bash-depot/termcap-1.3.1-ia64_64-11.31.depot termcap
swinstall -s /tmp/bash-depot/libiconv-1.15-ia64_64-11.31.depot libiconv
swinstall -s /tmp/bash-depot/libunistring-0.9.9-ia64_64-11.31.depot libunistring
swinstall -s /tmp/bash-depot/gettext-0.19.8.1-ia64_64-11.31.depot gettext
swinstall -s /tmpbash-depot/bash-4.4.19-ia64_64-11.31.depot bash

创建链接

cd /bin  
ln -s /usr/local/bin/bash bash

安装完成。

卸载bash:

删除链接:

su - root
cd /bin
ls -l bash
rm bash

删除包:

swremove /tmp/bash-depot/bash-4.4.19-ia64_64-11.31.depot bash
swremove /tmp/bash-depot/gettext-0.19.8.1-ia64_64-11.31.depot gettext
swremove /tmp/bash-depot/libunistring-0.9.9-ia64_64-11.31.depot libunistring
swremove /tmp/bash-depot/libiconv-1.15-ia64_64-11.31.depot libiconv
swremove /tmp/bash-depot/termcap-1.3.1-ia64_64-11.31.depot termcap
swremove /tmp/bash-depot/readline-7.0.003-ia64_64-11.31.depot readline
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值