手动安装

  以安装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. CISCN 应用环境相关指令备忘录

    1 - 关于Python环境的 使用Anaconda2管理Python环境 1.1 - 安装 官网下载安装包下载. 1.2 - 创建Python环境 localhost:template mac$ c ...

  2. 蓝牙重启case之:hardware error

    蓝牙的通信分为host和controller,host端发送数据和命令到controller,controller 上传event以及数据到host端,这要求上下两端的通信要求状态一致性. 当发生状态 ...

  3. LeetCode Generate Parentheses (DFS)

    题意 Given n pairs of parentheses, write a function to generate all combinations of well-formed parent ...

  4. 用C++实现一个Brainfuck解释器

    Brainfuck是一种极小化的计算机语言,只含有8种运算符,由于fuck在英语中是脏话,这种语言有时被称为brainfck或brainf**,甚至被简称为BF.正如它的名字所暗示,brainfuck ...

  5. winform 记事本 剪切 粘贴 全选 撤销

    private void 撤消UToolStripMenuItem_Click(object sender, EventArgs e) { textBox1.Undo(); } private voi ...

  6. 矩阵分解----Cholesky分解

    矩阵分解是将矩阵拆解成多个矩阵的乘积,常见的分解方法有 三角分解法.QR分解法.奇异值分解法.三角分解法是将原方阵分解成一个上三角矩阵和一个下三角矩阵,这种分解方法叫做LU分解法.进一步,如果待分解的 ...

  7. B1048 数字加密

    15/20 #include<bits/stdc++.h> using namespace std; stack<int> s; char a[3]={'J','Q','K'} ...

  8. Practice1小学四则运算(改进)

    #include<stdio.h> #include<stdlib.h> #include<time.h> void srand(unsigned);//随机生成不 ...

  9. UIView 添加闪烁的渐变光

    CGRect gradientRect=CGRectMake(- imageView3.bounds.size.width*, * imageView3.bounds.size.width, imag ...

  10. 学习Java并发的课程

    https://www.javaspecialists.eu/courses/concurrency.jsp http://www.jconcurrent.com/ javaConcurrentAni ...