Linux上软件安装
手动安装
以安装SublimeText3为例:
首先下载安装包
[keysystem@localhost ~]$ wget https://download.sublimetext.com/sublime_text_3_build_3143_x64.tar.bz2
---- ::-- https://download.sublimetext.com/sublime_text_3_build_3143_x64.tar.bz2
Resolving download.sublimetext.com... 104.236.0.104
Connecting to download.sublimetext.com|104.236.0.104|:... connected.
HTTP request sent, awaiting response... OK
Length: (9.4M) [application/octet-stream]
Saving to: “sublime_text_3_build_3143_x64.tar.bz2” %[==========================================================================>] ,, 113K/s in 3m 23s -- :: (47.5 KB/s) - “sublime_text_3_build_3143_x64.tar.bz2” saved [/] [keysystem@localhost ~]$
然后解压该安装包
[keysystem@localhost ~]$ tar jxvf sublime_text_3_build_3143_x64.tar.bz2
sublime_text_3/
sublime_text_3/Packages/
sublime_text_3/Packages/Pascal.sublime-package
sublime_text_3/Packages/Matlab.sublime-package
sublime_text_3/Packages/Go.sublime-package
sublime_text_3/Packages/Graphviz.sublime-package
......
[keysystem@localhost ~]$
将该安装包放到一个指定的路径或者隐藏(此步骤不是必须,但文件统一放置是好的习惯,此示例为隐藏安装包)
[keysystem@localhost ~]$ mv sublime_text_3 .sublime_text_3
为了方便sublimeText3的使用,给sublimeText3做一个系统命令,在任何地方执行一个命令就可以启动sublimeText3。可以将sublimeText3的可执行文件的目录加入到PATH的环境变量,也可以做一个符号链接。(本示例是做一个符号链接)
[keysystem@localhost .sublime_text_3]$ ln -s ~/.sublime_text_3/sublime_text ~/bin/sublime
[keysystem@localhost .sublime_text_3]$
在任意目录下,执行sublime就可以启动sublimeText3了。
deb安装
以GNU软件基金会的hello为例,安装开源软件的三个步骤:
- configure
- make
- make install
其中make install需要管理员权限。
步骤一,先下载hello的debian包。
[keysystem@localhost .sublime_text_3]$ wget http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
---- ::-- http://ftp.gnu.org/gnu/hello/hello-2.10.tar.gz
Resolving ftp.gnu.org... 208.118.235.20, :::::b
Connecting to ftp.gnu.org|208.118.235.20|:... connected.
HTTP request sent, awaiting response... OK
Length: (709K) [application/x-gzip]
Saving to: “hello-2.10.tar.gz” %[==========================================================================>] , 118K/s in .0s -- :: ( KB/s) - “hello-2.10.tar.gz” saved [/]
步骤二,解压该压缩包
[keysystem@localhost .sublime_text_3]$ tar zxvf hello-2.10.tar.gz
hello-2.10/
hello-2.10/COPYING
hello-2.10/tests/
hello-2.10/tests/greeting-
hello-2.10/tests/traditional-
hello-2.10/tests/greeting-
hello-2.10/tests/hello-
hello-2.10/tests/last-
hello-2.10/Makefile.am
hello-2.10/config.in
......
[keysystem@localhost .sublime_text_3]$
步骤三,进入到源码包目录执行,安装源码包的三个步骤
[keysystem@localhost ~]$ cd hello-2.10
[keysystem@localhost hello-2.10]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
......
[keysystem@localhost hello-2.10]$ make
......
[keysystem@localhost hello-2.10]$ su
Password:
[root@localhost hello-2.10]# make install
......
[root@localhost hello-2.10]# hello
Hello, world!
[root@localhost hello-2.10]# su
[root@localhost hello-2.10]# su - keysystem
[keysystem@localhost ~]$ hello
Hello, world!
从apt安装(ubuntu)
以git安装为例
[keysystem@localhost ~]$ sudo apt-get install git
##或者
[root@localhost keysystem]# apt-get install git
从yum安装(centos)
以git安装为例
[keysystem@localhost ~]$ sudo yum install git
##或者
[root@localhost keysystem]# yum install git
Linux上软件安装的更多相关文章
- 九、Linux上软件安装
1. 在Linux上安装JDK: [步骤一]:上传JDK到Linux的服务器. * 上传JDK * 卸载open-JDK java –version rpm -qa | grep java rpm - ...
- GIT在Linux上的安装和使用简介
GIT最初是由Linus Benedict Torvalds为了更有效地管理Linux内核开发而创立的分布式版本控制软件,与常用的版本控制工具如CVS.Subversion不同,它不必服务器端软件支持 ...
- linux下软件安装与卸载
linux上软件二进制安装主要分为:rpm手动安装和yum在线安装(其所安装的都为rpm二进制包). 关于rpm手动安装,学习后面内容前需分清如下内容: 包全名 : 操作的包是没有安装的软件包时,使用 ...
- (大数据工程师学习路径)第一步 Linux 基础入门----Linux 下软件安装
介绍 介绍 Ubuntu 下软件安装的几种方式,及 apt,dpkg 工具的使用. 一.Linux 上的软件安装 通常 Linux 上的软件安装主要有三种方式: 在线安装 从磁盘安装deb软件包 从二 ...
- 二:Linux 的基本命令、VI编辑器、Linux中软件安装
Linux 的基本命令 1. 文件操作 a) Windows 是多根的文件系统,物理上是 1 到多块硬盘,逻辑上分为 C.D.E--盘, 每个盘都是一棵树.Linux 是单根的文件系统,不分 CDE ...
- linux下软件安装的几种方式
linux下软件安装的几种方式(主要有源码安装, rpm安装, yum安装). 一:源码安装 几乎所有的开源软件都支持在Linux下运行,而这些软件一般都以源码形式发放,只需要Linux安装了gcc. ...
- 在Linux上rpm安装运行Redis 3.0.4
http://www.rpmfind.net搜索redis,找到redis3.0.4的rpm源选做 wget ftp://fr2.rpmfind.net/linux/remi/enterprise/6 ...
- Linux入门基础教程之Linux下软件安装
Linux入门基础教程之Linux下软件安装 一.在线安装: sudo apt-get install 即可安装 如果在安装完后无法用Tab键补全命令,可以执行: source ~/.zshrc AP ...
- Linux 下软件安装
Linux 下软件安装 一.Linux 上的软件安装 通常 Linux 上的软件安装主要有三种方式: 在线安装 从磁盘安装deb软件包 从二进制软件包安装 从源代码编译安装 这几种安装方式各有优劣,而 ...
随机推荐
- maven中添加jetty运行插件
maven项目,用jetty插件运行,对热部署的支持比较好.maven的pom文件加入下面代码 <plugin> <groupId>org.mortbay.je ...
- 配置yum,nc,telnet
一.学习中问题 最近学习在学习Hadoop的一个子项目Zookeeper,在测试其中的“四字命令”---”echo ruok|nc localhost 2181“时发现命令无法被识别,如下图所示: [ ...
- 28 个 C/C++ 开源 JSON 程序库性能及标准符合程度评测
28 个 C/C++ 开源 JSON 程序库性能及标准符合程度评测 坊间有非常多的 C/C++ JSON 库,怎么选择是一个难题. [nativejson-benchmark](https://git ...
- C#Unit单元测试之读取Web.config文件
长期一来,我们所完成的项目都没有写单元测试,今天我一时兴起,决定给自己写的代码写单元测试,简单的测试代码分分钟完成了,一运行测试,就懵逼了.没能达到我的预期效果,而是出现图1所示错误. 图1:单元测试 ...
- 修改 input[type="radio"] 和 input[type="checkbox"] 的默认样式
表单中,经常会使用到单选按钮和复选框,但是,input[type="radio"] 和 input[type="checkbox"] 的默认样式在不同的浏览器或 ...
- 8、Dockerfile介绍和最佳实践
一.Dockerfile 概念 1.Dockerfile是什么 Docker 镜像是一个特殊的文件系统,除了提供容器运行时所需的程序.库.资源.配置等文件外,还包含了一些为运行时准备的一些配置参数(如 ...
- Windows 10无法使用debug的解决方案
在学习汇编语言的时候,XP系统或者更早版本的默认在Dos命令下敲入debug即可进入汇编指令模式下,而在Windows 7及更高版本下,这些功能似乎都被阉割了,所以今天我们讲带大家处理一下如何解决这个 ...
- 转 ssh-keygen 的 详解
为了让两个linux机器之间使用ssh不需要用户名和密码.所以采用了数字签名RSA或者DSA来完成这个操作. 模型分析 假设 A (192.168.20.59)为客户机器,B(192.168.20.6 ...
- 由Windows开发平台向Linux平台转移的一些想法
从毕业到现在已经快20年了,一直在从事Windows平台上的开发工作.刚毕业那会大约是97,98年左右,工作的平台除了Windows平台还有Dos平台,因为在学校学习时,也是从Dos开始的.因此对于从 ...
- python 游戏(井字棋)
1. 游戏思路和流程图 实现功能,现实生活中的井字棋玩法 游戏流程图 2. 使用模块和游戏提示 import random def game_info(): print('欢迎来到井字棋游戏') pr ...