手动安装

  以安装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. 汇编 for循环

    知识点: for循环生成代码1 for循环生成代码2 inc指令 一.一般情况下的for循环汇编代码分析 ;i<=;i++) { printf("%d,",i); } ...

  2. 汇编 MOV -2

    知识点:  MOV指令  基址  内联汇编  把OD附加到资源管理器右键菜单 一.MOV指令 aaa=0x889977;//MOV DWORD PTR DS:[0x403018],0x8899 ...

  3. AT24C02跨页写数据

    AT24C02 EEPROM的写数据分为:字节写数据模式和页写数据模式:字节写就是一个地址一个数据的写,页写是连续写数据,一个地址多个数据的写,但是页写不能自动跨页,如果超出一页长度,超出的数据会覆盖 ...

  4. tkinter 对键盘和鼠标事件的处理

    鼠标事件 <ButtonPress-n> <Button-n> <n> 鼠标按钮n被按下,n为1左键,2中键,3右键 <ButtonRelease-n> ...

  5. effective c++ 笔记 (1-3)

    // //  effective c++.cpp //  笔记 // //  Created by fam on 15/3/23. // // //-------------------------- ...

  6. harbor使用和管理

    一.上传本地镜像到harbor中 先在harbor 中创建testdocker 项目 因为我们本地没有镜像,我们先拉取一个镜像,然后进行下面的操作 查看nginx 镜像 2.下载nginx镜像到本地 ...

  7. Linux shell(5)

    shell程序流程控制的三大结构: 1. 顺序结构 2.选择结构 3.循环结构 顺序结构的定义: 顺序结构的程序设计是最简单的一种结构,它的执行顺序自上而下,依次执行,因此,我们只要按照解决问题的思路 ...

  8. Category Theory: 01 One Structured Family of Structures

    Category Theory: 01 One Structured Family of Structures 这次看来要放弃了.看了大概三分之一.似乎不能够让注意力集中了.先更新吧. 群的定义 \( ...

  9. 2018-07-09--记录一次gitlab迁移事件及遇到的问题

    一.事情起因 因机房服务器即将到期,需要将即将到期的服务器迁移至云上,迁移之前没有查看老环境的Gitlab是什么版本,直接装的Gitlab社区版,做数据导入时提示版本错误: [root@vpn-ser ...

  10. Unity3D — — UGUI之简易背包

    Uinity版本:2017.3 最近在学Siki老师的<黑暗之光RPG>教程,由于教程内用的是NGUI实现,而笔者本人用的是UGUI,所以在这里稍微写一下自己的实现思路(大致上和NGUI一 ...