特殊:Badtitle/NS100:SoftwarePackagingFormats:修订间差异
小 New page: {{From|https://help.ubuntu.com/community/SoftwarePackagingFormats}} {{Languages|php5}} === Introduction === In this document we summarise major Linux package formats. Windows users may be... |
小无编辑摘要 |
||
第39行: | 第39行: | ||
<pre><nowiki> | <pre><nowiki> | ||
gzip filename | gzip filename | ||
</nowiki></ | </nowiki></pre> | ||
To uncompress an individual gzipped file: | To uncompress an individual gzipped file: | ||
<pre><nowiki> | <pre><nowiki> | ||
gunzip filename.gz | gunzip filename.gz | ||
</nowiki></ | </nowiki></pre> | ||
To create a gzipped tar file: | To create a gzipped tar file: | ||
<pre><nowiki> | <pre><nowiki> | ||
tar cvzf archivename.tar filename | tar cvzf archivename.tar filename | ||
</nowiki></ | </nowiki></pre> | ||
To extract specific files from a gzipped tar file: | To extract specific files from a gzipped tar file: | ||
<pre><nowiki> | <pre><nowiki> | ||
tar xvzf archivename.tar filenames | tar xvzf archivename.tar filenames | ||
</nowiki></ | </nowiki></pre> | ||
'''A warning for novice users: don't use directly tarballs; if there are .deb packages available you should use them as you might damage or destabilise your installation.''' | '''A warning for novice users: don't use directly tarballs; if there are .deb packages available you should use them as you might damage or destabilise your installation.''' | ||
第73行: | 第73行: | ||
<pre><nowiki> | <pre><nowiki> | ||
dpkg -i packagename | dpkg -i packagename | ||
</nowiki></ | </nowiki></pre> | ||
To list installed packages: | To list installed packages: | ||
<pre><nowiki> | <pre><nowiki> | ||
apt-cache show packagename | apt-cache show packagename | ||
</nowiki></ | </nowiki></pre> | ||
To remove/uninstall a package : | To remove/uninstall a package : | ||
<pre><nowiki> | <pre><nowiki> | ||
dpkg -r packagename | dpkg -r packagename | ||
</nowiki></ | </nowiki></pre> | ||
If you are not a command line user, you may wish to use Synaptic to perform these functions. | If you are not a command line user, you may wish to use Synaptic to perform these functions. |
2007年5月13日 (日) 12:29的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/SoftwarePackagingFormats }} |
点击翻译: |
English {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/af | • {{#if: php5|Afrikaans| [[::SoftwarePackagingFormats/af|Afrikaans]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/ar | • {{#if: php5|العربية| [[::SoftwarePackagingFormats/ar|العربية]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/az | • {{#if: php5|azərbaycanca| [[::SoftwarePackagingFormats/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/bcc | • {{#if: php5|جهلسری بلوچی| [[::SoftwarePackagingFormats/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/bg | • {{#if: php5|български| [[::SoftwarePackagingFormats/bg|български]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/br | • {{#if: php5|brezhoneg| [[::SoftwarePackagingFormats/br|brezhoneg]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/ca | • {{#if: php5|català| [[::SoftwarePackagingFormats/ca|català]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/cs | • {{#if: php5|čeština| [[::SoftwarePackagingFormats/cs|čeština]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/de | • {{#if: php5|Deutsch| [[::SoftwarePackagingFormats/de|Deutsch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/el | • {{#if: php5|Ελληνικά| [[::SoftwarePackagingFormats/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/es | • {{#if: php5|español| [[::SoftwarePackagingFormats/es|español]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/fa | • {{#if: php5|فارسی| [[::SoftwarePackagingFormats/fa|فارسی]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/fi | • {{#if: php5|suomi| [[::SoftwarePackagingFormats/fi|suomi]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/fr | • {{#if: php5|français| [[::SoftwarePackagingFormats/fr|français]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/gu | • {{#if: php5|ગુજરાતી| [[::SoftwarePackagingFormats/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/he | • {{#if: php5|עברית| [[::SoftwarePackagingFormats/he|עברית]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/hu | • {{#if: php5|magyar| [[::SoftwarePackagingFormats/hu|magyar]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/id | • {{#if: php5|Bahasa Indonesia| [[::SoftwarePackagingFormats/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/it | • {{#if: php5|italiano| [[::SoftwarePackagingFormats/it|italiano]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/ja | • {{#if: php5|日本語| [[::SoftwarePackagingFormats/ja|日本語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/ko | • {{#if: php5|한국어| [[::SoftwarePackagingFormats/ko|한국어]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/ksh | • {{#if: php5|Ripoarisch| [[::SoftwarePackagingFormats/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/mr | • {{#if: php5|मराठी| [[::SoftwarePackagingFormats/mr|मराठी]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/ms | • {{#if: php5|Bahasa Melayu| [[::SoftwarePackagingFormats/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/nl | • {{#if: php5|Nederlands| [[::SoftwarePackagingFormats/nl|Nederlands]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/no | • {{#if: php5|norsk| [[::SoftwarePackagingFormats/no|norsk]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/oc | • {{#if: php5|occitan| [[::SoftwarePackagingFormats/oc|occitan]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/pl | • {{#if: php5|polski| [[::SoftwarePackagingFormats/pl|polski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/pt | • {{#if: php5|português| [[::SoftwarePackagingFormats/pt|português]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/ro | • {{#if: php5|română| [[::SoftwarePackagingFormats/ro|română]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/ru | • {{#if: php5|русский| [[::SoftwarePackagingFormats/ru|русский]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/si | • {{#if: php5|සිංහල| [[::SoftwarePackagingFormats/si|සිංහල]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/sq | • {{#if: php5|shqip| [[::SoftwarePackagingFormats/sq|shqip]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/sr | • {{#if: php5|српски / srpski| [[::SoftwarePackagingFormats/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/sv | • {{#if: php5|svenska| [[::SoftwarePackagingFormats/sv|svenska]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/th | • {{#if: php5|ไทย| [[::SoftwarePackagingFormats/th|ไทย]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/tr | • {{#if: php5|Türkçe| [[::SoftwarePackagingFormats/tr|Türkçe]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/vi | • {{#if: php5|Tiếng Việt| [[::SoftwarePackagingFormats/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/yue | • {{#if: php5|粵語| [[::SoftwarePackagingFormats/yue|粵語]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/zh | • {{#if: php5|中文| [[::SoftwarePackagingFormats/zh|中文]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/zh-hans | • {{#if: php5|中文(简体)| [[::SoftwarePackagingFormats/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: php5 | php5 | {{#if: | :}}SoftwarePackagingFormats}}/zh-hant | • {{#if: php5|中文(繁體)| [[::SoftwarePackagingFormats/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:php5|:SoftwarePackagingFormats|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :SoftwarePackagingFormats/zh | | {{#ifexist: SoftwarePackagingFormats/zh | | {{#ifeq: {{#titleparts:SoftwarePackagingFormats|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:SoftwarePackagingFormats|1|-1|}} | zh | | }}
Introduction
In this document we summarise major Linux package formats. Windows users may be aided by comparing them to the Windows formats they are familiar with.
Objective
This document is made for users who are new to Linux and want to know about the Linux package formats. This guide will cover some known package formats, compressions, and methods of packaging.
Formats
In Windows, software come usually in .zip, .rar, or .exe format. For Linux you have options like:
- Source files
- Binary files
- Tarballs
- Redhat packages (.RPM)
- Debian Packages (.deb)
Source files are nothing but raw code which requires compilation to work, while binary files are like .exe files which are ready to install.
Tarballs
Tarballs are a large collection of files compatted 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 WinZip file on Windows or an HQX 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
gzip
The most common method of file compression in linux is to use the gzip program. Gzip will compress any kind of file, but works best on text files (such as source code files).
You can use these command line options.
To compress an individual file using gzip:
gzip filename
To uncompress an individual gzipped file:
gunzip filename.gz
To create a gzipped tar file:
tar cvzf archivename.tar filename
To extract specific files from a gzipped tar file:
tar xvzf archivename.tar filenames
A warning for novice users: don't use directly tarballs; if there are .deb packages available you should use them as you might damage or destabilise your installation.
RPM's
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 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 as you might damage or destabilise your installation.
deb packages
Debian, along with its derivative distributions, uses packages in a file format called deb. Deb packages are managed using a command line program called "dpkg", or with graphical front ends for dpkg like synaptic, adept, etc. Deb packages are known for their adaptability and robustness.
As Ubuntu is based on Debian, it uses the .deb packages system. The software technology for the download and automatic installation of packages is known as "apt". You will find these commands helpful for .deb files:
To install a package:
dpkg -i packagename
To list installed packages:
apt-cache show packagename
To remove/uninstall a package :
dpkg -r packagename
If you are not a command line user, you may wish to use Synaptic to perform these functions. All these commands requires root privileges.
Programs, packages, help resources
Software installation programs available for Ubuntu/Kubuntu are Synaptic Package Manager and Adept. You can even use Add-Remove applications link from applications menu to add or remove softwares. Besides the Ubuntu repositories you can obtain software from various sources. Some of the sources/links are mentioned below.
- http://www.linuxapps.com
- http://www.icewalkers.com
- http://packages.debian.org/
- http://www.apt-get.org/
CategoryDocumentation CategoryCleanup