Linux学习笔记(十)软件安装
软件的安装,一般的做法,lib库包用源的方式安装,应用软件采用源码的方式安装
1.使用源更新
更新Software
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install/remove openssh-server Ubuntu
sudo apt-get install/remove vim Ubuntu
or
sudo yum install/remove openssh-server CentOS
2. wget 命令 下载文件的免费工具.支持HTTP, HTTPS, FTP协议和 HTTP 代理
root@localhost:~# wget http://downloads.sourceforge.net/project/xxx.tar.gz
3. tar命令 压缩解压缩命令
root@localhost:~# tar -zxvf abc.tar.gz (记住'z'代表了.tar.gz)
root@localhost:~# tar -jxvf abc.tar.bz2 (记住'j'代表了.tar.bz2)
root@localhost:~# tar -cvf archieve.tar.gz(.bz2) /path/to/folder/abc
4.make编译安装软件
[root@localhost ~]# cd /home/new/Desktop
[root@localhost Desktop]# tar -xzvf fcitx-3.4.2.tar.gz
[root@localhost Desktop]# cd /home/new/Desktop/fcitx-3.4.2
[root@localhost fcitx-3.4.2]#./configure --prefix=/opt/fictx
[root@localhost fcitx-3.4.2]#make
[root@localhost fcitx-3.4.2]#make install
猜你喜欢
转载自pluto418.iteye.com/blog/1772250
今日推荐
周排行