特殊:Badtitle/NS100:SoftwarePackagingFormats
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/SoftwarePackagingFormats }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/af | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Afrikaans| [[::SoftwarePackagingFormats/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/ar | • {{#if: UbuntuHelp:SoftwarePackagingFormats|العربية| [[::SoftwarePackagingFormats/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/az | • {{#if: UbuntuHelp:SoftwarePackagingFormats|azərbaycanca| [[::SoftwarePackagingFormats/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/bcc | • {{#if: UbuntuHelp:SoftwarePackagingFormats|جهلسری بلوچی| [[::SoftwarePackagingFormats/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/bg | • {{#if: UbuntuHelp:SoftwarePackagingFormats|български| [[::SoftwarePackagingFormats/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/br | • {{#if: UbuntuHelp:SoftwarePackagingFormats|brezhoneg| [[::SoftwarePackagingFormats/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/ca | • {{#if: UbuntuHelp:SoftwarePackagingFormats|català| [[::SoftwarePackagingFormats/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/cs | • {{#if: UbuntuHelp:SoftwarePackagingFormats|čeština| [[::SoftwarePackagingFormats/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/de | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Deutsch| [[::SoftwarePackagingFormats/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/el | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Ελληνικά| [[::SoftwarePackagingFormats/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/es | • {{#if: UbuntuHelp:SoftwarePackagingFormats|español| [[::SoftwarePackagingFormats/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/fa | • {{#if: UbuntuHelp:SoftwarePackagingFormats|فارسی| [[::SoftwarePackagingFormats/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/fi | • {{#if: UbuntuHelp:SoftwarePackagingFormats|suomi| [[::SoftwarePackagingFormats/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/fr | • {{#if: UbuntuHelp:SoftwarePackagingFormats|français| [[::SoftwarePackagingFormats/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/gu | • {{#if: UbuntuHelp:SoftwarePackagingFormats|ગુજરાતી| [[::SoftwarePackagingFormats/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/he | • {{#if: UbuntuHelp:SoftwarePackagingFormats|עברית| [[::SoftwarePackagingFormats/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/hu | • {{#if: UbuntuHelp:SoftwarePackagingFormats|magyar| [[::SoftwarePackagingFormats/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/id | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Bahasa Indonesia| [[::SoftwarePackagingFormats/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/it | • {{#if: UbuntuHelp:SoftwarePackagingFormats|italiano| [[::SoftwarePackagingFormats/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/ja | • {{#if: UbuntuHelp:SoftwarePackagingFormats|日本語| [[::SoftwarePackagingFormats/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/ko | • {{#if: UbuntuHelp:SoftwarePackagingFormats|한국어| [[::SoftwarePackagingFormats/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/ksh | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Ripoarisch| [[::SoftwarePackagingFormats/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/mr | • {{#if: UbuntuHelp:SoftwarePackagingFormats|मराठी| [[::SoftwarePackagingFormats/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/ms | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Bahasa Melayu| [[::SoftwarePackagingFormats/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/nl | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Nederlands| [[::SoftwarePackagingFormats/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/no | • {{#if: UbuntuHelp:SoftwarePackagingFormats|norsk| [[::SoftwarePackagingFormats/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/oc | • {{#if: UbuntuHelp:SoftwarePackagingFormats|occitan| [[::SoftwarePackagingFormats/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/pl | • {{#if: UbuntuHelp:SoftwarePackagingFormats|polski| [[::SoftwarePackagingFormats/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/pt | • {{#if: UbuntuHelp:SoftwarePackagingFormats|português| [[::SoftwarePackagingFormats/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/ro | • {{#if: UbuntuHelp:SoftwarePackagingFormats|română| [[::SoftwarePackagingFormats/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/ru | • {{#if: UbuntuHelp:SoftwarePackagingFormats|русский| [[::SoftwarePackagingFormats/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/si | • {{#if: UbuntuHelp:SoftwarePackagingFormats|සිංහල| [[::SoftwarePackagingFormats/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/sq | • {{#if: UbuntuHelp:SoftwarePackagingFormats|shqip| [[::SoftwarePackagingFormats/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/sr | • {{#if: UbuntuHelp:SoftwarePackagingFormats|српски / srpski| [[::SoftwarePackagingFormats/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/sv | • {{#if: UbuntuHelp:SoftwarePackagingFormats|svenska| [[::SoftwarePackagingFormats/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/th | • {{#if: UbuntuHelp:SoftwarePackagingFormats|ไทย| [[::SoftwarePackagingFormats/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/tr | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Türkçe| [[::SoftwarePackagingFormats/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/vi | • {{#if: UbuntuHelp:SoftwarePackagingFormats|Tiếng Việt| [[::SoftwarePackagingFormats/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/yue | • {{#if: UbuntuHelp:SoftwarePackagingFormats|粵語| [[::SoftwarePackagingFormats/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/zh | • {{#if: UbuntuHelp:SoftwarePackagingFormats|中文| [[::SoftwarePackagingFormats/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/zh-hans | • {{#if: UbuntuHelp:SoftwarePackagingFormats|中文(简体)| [[::SoftwarePackagingFormats/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:SoftwarePackagingFormats | UbuntuHelp:SoftwarePackagingFormats | {{#if: | :}}SoftwarePackagingFormats}}/zh-hant | • {{#if: UbuntuHelp:SoftwarePackagingFormats|中文(繁體)| [[::SoftwarePackagingFormats/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:SoftwarePackagingFormats|:SoftwarePackagingFormats|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :SoftwarePackagingFormats/zh | | {{#ifexist: SoftwarePackagingFormats/zh | | {{#ifeq: {{#titleparts:SoftwarePackagingFormats|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:SoftwarePackagingFormats|1|-1|}} | zh | | }}
<<Include(Tag/Duplicate)>> This page duplicates material in InstallingSoftware and CompilingEasyHowTo, other material should be integrated elsewhere and the page marked for deletion.
Software packaging formats in Linux
This document summarizes major Linux software packaging formats. 本文档归纳了大部分linux下的软件包格式。
Introduction
This guide is written for Ubuntu users that would like to learn more about common Linux packaging formats. This guide is not all-inclusive, it merely covers common formats likely to be encountered by average users. For information on installing software see the additional resources at the end of the article.
Formats
Linux uses some common formats to distribute software. The most common formats for the average Ubuntu user are:
- Debian Packages (.deb)
- Tarballs
- Red Hat packages (.RPM)
Debian packages (.deb)
Debian Packages are the most common format you will encounter when installing software in Ubuntu. This is the standard software packaging format used by Debian and Debian derivatives. All of the software in the Ubuntu repositories is packaged in this format. Synaptic Package Manager, Add/Remove Applications, Aptitude, and apt-get handle the transaction with the repository behind the scenes.
Tarballs
Tarballs are a large collection of files assembled into a single archive file. The "tar" command is used to combine many files into a single file for archiving or easy distribution. The "gzip" command is used to compress the size of a file so that it takes up less space. A tarball is very similar to a .zip file on Windows, or a .hqx, .sit, or .dmg file on Macs.
Tarballs have extensions like ".tar.gz", ".tar.bz2" or "TGZ". Most of the time, a tarball contains source files and/or binary files. In the open source community, they are used to distribute source code. If you find any software with a .tar.gz appendix, you will need to uncompress it by double clicking on it before installing the software it contains. To do the same thing from a terminal window, you can also use the tar command like this:
tar xzf name_of_file
Source files
Source files are nothing but raw code which requires compilation to work, while binary files are like .exe files which are ready to install. See also FileCompression.
Binary files
RPMs
The Red hat Package Manager or .RPM format is specifically designed for easy installation and management of software packages. The format allows you to automatically install, upgrade and remove software packages. It tracks dependencies -- situations where one package requires another package in order to work correctly -- and will not install software if it depends on another package which is not installed. To convert RPM packages to Debian's package format you can use the alien command. A warning for novice users: don't use the alien method; if there are .deb packages available you should use them, since using a package designed for another distribution might inadvertently damage or destabilize your system.