下载一个文件
博友可以先看完博客:《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