linux软件包下载解压安装

半世苍凉 提交于 2019-12-02 09:41:00

下载一个文件

博友可以先看完博客:《Linux软件包详解》

                                     《Linux中安装yum仓库详解》

                                       《Linux中tar命令》用于解压安装包 

的基础上学习

wget -o /etc/yum.repos.d/haha.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

windows下软件包传输到Linux

           命令:rz

           或者用:Xftp

         

[root@localhost test]# tar -zxvf tree-1.7.0.gz

 [root@localhost tree-1.7.0]# yum install gcc* -y

[root@localhost tree-1.7.0]# make

将.c编译成.o

 

二.

[root@localhost test]# which tar

/usr/bin/tar

[root@localhost test]# mv /usr/bin/tar /usr/bin/tar.bak

[root@localhost test]# tar.bak -zxvf tar-1.29.tar.gz

[root@localhost tar-1.29]# ./configure

configure: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)

See `config.log' for more details提示不能在Root用户下

-----------------------

-rwxr-xr-x. 1 xxx users 980931 5月  16 2016 configure

[ceshi@localhost tar-1.29]$ su - xxx

[xxx@localhost tar-1.29]$ ./configure

Exit切换到root

编译须在root下

[root@localhost tar-1.29]# make install

清除缓存

[root@localhost test]# hash -d tar

[root@localhost test]# tar -zxvf tree-1.7.0.gz

 

 

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!