`
ihuashao
  • 浏览: 4722547 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

HOWTO: Install *.deb *.rpm and Source Code Files

阅读更多

In a very broad sense, GNU/Linux applications are distributed in two formats: source code and distribution-specific packages.

See Primer on Programming post.

The concept of distributing an application as source code seems foreign to many computer users, but it is extremely logical.

It is usually preferable to find a distribution specific package of the application for your distribution first. Only hunt for source code if you have a reason to such as there is no package for your distro, or the source code version is more up to date than the package version.

Distribution Specific Packages

Possibly the two most common packages out there are Debian and Red Hat style packages. There are others such as Slackware, but Debian and Red Hat are probably the most common.

Debian style packages end in the extension .deb and Red Hat style packages end in the extension .rpm. In general, if you are running a Debian-based system (like Ubuntu, Kanotix, or Debian itself) you should look for a *.deb package for the application; if you’re running a Red Hat-style system (like Fedora, SUSE, or Red Hat itself), then you should look for a *.rpm package for the application.

The words ‘In general’ are emphasized above because some distributions have gone so far off the mainstream track of their flavour that this rule does no apply. For example, Ubuntu is a Debian-based distribution and therefore you should be able to use a *.deb package to install an application. However, Ubuntu has strayed so far from the core Debian stream that there are some *.deb packages that won’t work on Ubuntu. Therefore not only do you want to look for a *.deb package for your Ubuntu but you also want to look specifically for an Ubuntu *.deb package. Attempting to install a standard *.deb package may or may not work.

I am not picking on Ubuntu – this same situation exists for many distros.

You may also have some luck grabbing the proper *.deb or *.rpm from your package manager.

In the terminal window of a Debian-based system (as root), type:

apt-get install application_name

In the terminal window of a Red Hat-based system (as root), type:

yum install application_name

If you’re successful, the application will download and install itself and you’re done.

Source Code

Source code is generally distributed as a tar archive which is usually referred to as a ‘tarball’. The advantage of compiling source code over installing a package is that the application will be built to your specific system. The disadvantage is that your system may not have all of the dependent packages that it requires in order to actually install or run the application. The activity of trying to install any required dependencies for an application is sometimes referred to as ‘dependency hell’ because it can be quite labourious.

Tarballs are generally archived in one of two ways: BZipped (usually has an extension of tar.bz or .tbz) or GZipped (usually has an extension of either .tar.gz or .tgz)

In general, the following steps are used to install a tarball:

  1. For a GZipped tarball: tar –zxvf filename.tar.gz (or filename.tgz)
  2. For a BZipped tarball: tar jzvf filename.tar.bz (or filename.tbz)
  3. ./configure
  4. make
  5. (as root) make install

The configure stage is where your system is queried to see if it has all the dependent files. The make stage is where the executable is actually compiled, and the make install stage is when the completed application is installed onto your system. Generally if you make it past the configure then you’re probably going to be OK.

From "http://www.newlinuxuser.com/howto-install-deb-rpm-and-source-code-files/"

In debian, more choises:
HOWTO: Use dpkg to Install .deb Files.
The Free World: CheckInstall - The Source Installer’s Saviour.

Update:
HOWTO: Best Of - Installing Applications in GNU/Linux
分享到:
评论

相关推荐

    linux环境下*.deb文件转换成*.rpm文件的文件转换工具.zip

    在Linux操作系统中,DEB和RPM是两种广泛使用的软件包格式,分别主要应用于Debian/Ubuntu和Red Hat/CentOS等系统。DEB文件是Debian及其衍生系统中的软件安装包,而RPM文件则适用于基于RPM(Red Hat Package Manager)...

    ubuntu离线安装搜狗输入法所需安装文件(包括依赖,格式:*.deb)

    ubuntu在离线方式下安装搜狗输入法,搜狗输入法依赖fcitx相关包文件,此压缩文件中包括了这些依赖包,并测试通过,输入法安装成功。

    Hyperledger Fabric make: *** No rule to make target问题(一)

    Hyperledger Fabric make: *** No rule to make target问题 最近一段时间,改Fabric代码,发现没法编译了!make总是报找不到target! ➜ fabric git:(master) ✗ make configtxgen make: *** No rule to make target ...

    Typora 0.11.18版本 Ubuntu等Debian系统*.deb安装包

    Typora 1.0版本后都需要激活序列码才...这里提供Typora 0.11.18版本 Ubuntu等Debian系统*.deb安装包下载后解压直接sudo dpkg -i typora.deb即可使用免费版的typora,且需要禁止typora的更新 sudo apt-mark hold typora

    java反编译工具jd-gui

    Package: *.zip, *.rar, *.tar, *.gz, *.gzip, *.7z, *.cab, *.iso FireFox: *.xpi Ubuntu: *.deb 更多格式可以手动添加支持 批量反编译工具使用方法: 1. 在“Source path”栏中填写要反编译的类文件或包文件...

    code-1.81.1-1691620686-amd64(ubuntu).deb

    标题中的"code-1.81.1-1691620686-amd64(ubuntu).deb"是指Visual Studio Code (VSCode)的一个特定版本的安装包,适用于Ubuntu操作系统。这个版本号1.81.1表明它是VSCode的1.81大版本下的一个小版本更新,而...

    ARC Convert 0.67压缩文件转换器

    文件|*.7z;*.lzh;*.lha;*.cab;*.zip;*.arj;*.ace;*.rar;...*.rpm;*.deb;*.bza;*.bh;*.noa;*.hki;*.pqa;*.sqx;*.ha;*.zoo;*.uha;*.lfb;*.imp;*.yz2;*.rs;*.blz;*.spl;*.apk;*.arc;*.msi;*.pma;*.alz;

    code_1.59.0-1628120042_amd64.deb

    Visual Studio Code 是一个轻量级但功能强大的源代码编辑器,可在您的桌面上运行,适用于 Windows、macOS 和 Linux。它内置了对 JavaScript、TypeScript ... code_1.59.0-1628120042_amd64.deb适用于Debian,Ubuntu系统

    Linux下常用压缩格式的压缩与解压方法

    10. **.rpm**: - **解包**:`rpm2cpio FileName.rpm | cpio -div` 11. **.sEx**: - **解压**:`sEx x FileName.*` - **压缩**:`sEx a FileName.* FileNames` - `sEx` 是一个调用其他压缩工具的脚本,需要...

    openssh-server.deb

    openssh服务端 执行 dpkg -i openssh-server_1%3a5.5p1-4ubuntu6_i386.deb安装 此安装软件为32位 64位系统安装不了

    loadrunner监控linux的相关配置

    2. 安装转换后的 DEB 包:`sudo dpkg -i rsh-server_0.17-68.fc17_amd64.deb` 接下来,需要在 `/etc/xinetd.d` 目录下编辑 `rlogin`, `rsh`, 和 `rexec` 这三个文件,将 `disable=yes` 改为 `disable=no`,并确保 `...

    vscode(code_1.70.1-1660111764_arm64.deb)

    ### Visual Studio Code 1.70.1 (code_1.70.1-1660111764_arm64.deb) 适用于 Debian ARM64 系统 #### 一、Visual Studio Code 简介 Visual Studio Code(简称 VS Code)是一款由微软开发并免费提供的源代码编辑器...

    codeblocks-deb-install.tar.gz

    `dpkg -i *.deb`命令是Linux中用于安装DEB包的标准方式,DEB是Ubuntu和其他基于Debian的发行版使用的软件包格式。`*.deb`通配符表示将该目录下所有.deb文件作为参数,逐一安装。这通常用于一次性安装多个关联的依赖...

    ubuntu20.04离线无网dpkg安装nginx按完整的deb包

    2. **进入`.deb`文件所在目录**:使用`cd`命令导航到包含`.deb`文件的目录,例如:`cd /path/to/deb/files/`。 3. **安装依赖**:先安装所有依赖项,确保Nginx可以正确运行。运行以下命令: ``` dpkg -i --force-...

    linux下如何安装软件借鉴.pdf

    **.deb包的安装:** ```bash #dpkg -i MYsoftware-1.2-1.deb ``` **.deb包的卸载:** ```bash #dpkg -e MYsoftware ``` **源代码安装** 源代码安装虽然更复杂,但它允许用户根据自身需求定制安装,并且在某些情况...

    Visual Studio Code 1.67.2 (code_1.67.2-1652812855_amd64.deb)

    Visual Studio Code 1.67.2 是一款广受欢迎的开源集成开发环境(IDE),尤其在编程社区中备受赞誉。这个版本的代码是为Debian和Ubuntu基于x86_64架构的系统设计的,这意味着它专为64位处理器优化,能够充分利用现代...

    linux压缩解压命令

    3. **.tar.gz** 或 **.tgz** 文件: - **解压**:`tar zxvf FileName.tar.gz`,这会同时解压并解包gz压缩的tar文件。 - **压缩**:`tar zcvf FileName.tar.gz DirName`,这会先打包DirName目录,然后用gzip进行...

    code_1.42.1-1581432938_amd64.deb

    visual studio code1.42.1.deb visual studio code1.42.1.deb visual studio code1.42.1.deb visual studio code1.42.1.deb visual studio code1.42.1.deb

    ukylin-wechat_3.0.0_amd64.deb.zip

    标题中的"ukylin-wechat_3.0.0_amd64.deb.zip"表明这是一个包含微信(de Weixin)应用程序的DEB格式压缩包,版本为3.0.0,适用于AMD64(即64位)架构的系统。DEB是Debian及其衍生版如Ubuntu操作系统中用于软件包管理的...

    linux-headers-3.5.0-25-generic_3.5.0-25.39_amd64.deb

    linux-headers-3.5.0-25-generic_3.5.0-25.39_amd64.deb ubuntu最新系统的头文件

Global site tag (gtag.js) - Google Analytics