手动安装

  以安装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上软件安装的更多相关文章

  1. 九、Linux上软件安装

    1. 在Linux上安装JDK: [步骤一]:上传JDK到Linux的服务器. * 上传JDK * 卸载open-JDK java –version rpm -qa | grep java rpm - ...

  2. GIT在Linux上的安装和使用简介

    GIT最初是由Linus Benedict Torvalds为了更有效地管理Linux内核开发而创立的分布式版本控制软件,与常用的版本控制工具如CVS.Subversion不同,它不必服务器端软件支持 ...

  3. linux下软件安装与卸载

    linux上软件二进制安装主要分为:rpm手动安装和yum在线安装(其所安装的都为rpm二进制包). 关于rpm手动安装,学习后面内容前需分清如下内容: 包全名 : 操作的包是没有安装的软件包时,使用 ...

  4. (大数据工程师学习路径)第一步 Linux 基础入门----Linux 下软件安装

    介绍 介绍 Ubuntu 下软件安装的几种方式,及 apt,dpkg 工具的使用. 一.Linux 上的软件安装 通常 Linux 上的软件安装主要有三种方式: 在线安装 从磁盘安装deb软件包 从二 ...

  5. 二:Linux 的基本命令、VI编辑器、Linux中软件安装

    Linux 的基本命令 1. 文件操作 a) Windows 是多根的文件系统,物理上是 1 到多块硬盘,逻辑上分为 C.D.E--盘, 每个盘都是一棵树.Linux 是单根的文件系统,不分 CDE ...

  6. linux下软件安装的几种方式

    linux下软件安装的几种方式(主要有源码安装, rpm安装, yum安装). 一:源码安装 几乎所有的开源软件都支持在Linux下运行,而这些软件一般都以源码形式发放,只需要Linux安装了gcc. ...

  7. 在Linux上rpm安装运行Redis 3.0.4

    http://www.rpmfind.net搜索redis,找到redis3.0.4的rpm源选做 wget ftp://fr2.rpmfind.net/linux/remi/enterprise/6 ...

  8. Linux入门基础教程之Linux下软件安装

    Linux入门基础教程之Linux下软件安装 一.在线安装: sudo apt-get install 即可安装 如果在安装完后无法用Tab键补全命令,可以执行: source ~/.zshrc AP ...

  9. Linux 下软件安装

    Linux 下软件安装 一.Linux 上的软件安装 通常 Linux 上的软件安装主要有三种方式: 在线安装 从磁盘安装deb软件包 从二进制软件包安装 从源代码编译安装 这几种安装方式各有优劣,而 ...

随机推荐

  1. Jmeter(二十二)_jenkins配置gitlab插件与ant插件

    Docker部署接口自动化持续集成环境第四步,代码上传到远程仓库! 接上文:脚本上传Gitlab 服务器中的Jenkins通过Gitlab插件读取远程Git远程仓库中的代码,然后通过ant插件进行构建 ...

  2. BugkuCTF web2

    前言 写了这么久的web题,算是把它基础部分都刷完了一遍,以下的几天将持续更新BugkuCTF WEB部分的题解,为了不影响阅读,所以每道题的题解都以单独一篇文章的形式发表,感谢大家一直以来的支持和理 ...

  3. 阿里云ECS服务器源配置

    前段时间领取了阿里云ECS免费试用6个月的福利,此处记录一下服务器源配置过程和服务器用户创建过程. 一.CentOS源配置 1.备份 mv /etc/yum.repos.d/CentOS-Base.r ...

  4. 金蝶盘点机PDA仓库条码管理家电类序列号扫描操作方法-采购入库单

    1.1.  采购入库单 传统的进销存管理软件需要人工识别商品品种,清点商品数量,然后再去人工手工在电脑上一行行的录入采购入库单.录单效率低,误差大. 如果使用汉码盘点机PDA,入库时,仓管员只需要手持 ...

  5. Kali信息收集-搜索引擎

    1.google hacking intext:搜索正文内容 intitile:网页标题中的内容 inurl:url中的关键字 site:目标站点下 filetype:文件类型 cache:缓存 li ...

  6. PAT甲题题解-1077. Kuchiguse (20)-找相同后缀

    #include <iostream> #include <cstdio> #include <algorithm> #include <string.h&g ...

  7. process.tar.gz

    exec1.c #include <stdio.h> #include <unistd.h> int main() { char *arglist[3]; arglist[0] ...

  8. LINUX内核分析第五周学习总结——扒开应用系统的三层皮(下)

    LINUX内核分析第五周学习总结——扒开应用系统的三层皮(下) 张忻(原创作品转载请注明出处) <Linux内核分析>MOOC课程http://mooc.study.163.com/cou ...

  9. 第五篇——Spring音乐播放界面设计(C#)

    由于小组成员已经完成软件的详细设计说明书,在这里只具体说明软件程序的细节编写,以免重复. 歌曲的播放采用VS自带的axWindowsMediaPlayer插件,所以程序中涉及到许多该插件的使用.Ctl ...

  10. 微信小程序简易table组件实现

    前提:微信小程序自1.6.3基础库版本库开始支持简洁组件,之前的版本因不支持,故在引用组件处默认为空节点.关于微信小程序已有模板为何还需构建组件?一是因为组件可以更方便的自定义并绑定行为,二是在其他页 ...