营卫不和吃什么中成药| 吃芒果后不能吃什么| 缺铁性贫血吃什么药好| 梦见抓蝎子是什么意思| dna是什么| 晚上起夜尿多吃什么药| 蒸米饭时加什么好吃| 南辕北辙告诉我们什么道理| 血液粘稠会有什么症状| 例假吃什么水果好| 商字五行属什么| 女人为什么要穿高跟鞋| 一味是什么意思| 德国是什么民族| 精致是什么意思| 肝内多发低密度灶是什么意思| 香港为什么不用人民币| 卵黄囊回声是什么意思| 性激素六项什么时候检查| 膝盖疼痛用什么药| 11月26是什么星座| 羊排炖什么好吃| 肝弥漫性病变是什么意思| wpw综合症是什么意思| 为什么感冒会流眼泪| 肾结石要忌口什么东西| 电信诈骗是什么意思| 什么减肥产品最好| 蛆是什么| 社会公德的主要内容是什么| 138是什么意思啊| 喝酒手发抖是什么原因| viscose是什么面料| 鸡翅木是什么木| 9.4号是什么星座| 职业资格证书有什么用| 皮肤黑穿什么颜色| 女人为什么会得霉菌| 卧室放什么花最好健康| 回民为什么不能吃猪肉| pc材质是什么| 地瓜什么时候成熟| 亚瑟士和鬼冢虎的区别是什么| 拉肚子吃什么药最有效| 肺炎支原体阳性是什么意思| 9像什么| 果可以加什么偏旁| 拉肚子吃点什么食物好| 性瘾是什么| 上日下立读什么| 感冒发烧不能吃什么食物| 小孩经常流鼻血是什么原因| 多潘立酮片治什么病| 美国为什么帮以色列| 亚型是什么意思| ne是什么意思| 四个月宝宝可以吃什么辅食| 樟脑丸是什么| 四面楚歌是什么意思| 吹泡泡是什么意思| 肝功能七项是检查什么| 眼睛流水是什么原因| 乙肝抗体阳性是什么意思| 春光乍泄是什么意思| 医院附近适合做什么生意| 牙齿上有黄斑是什么原因| 萎靡不振是什么意思| 波罗蜜是什么意思| 6月19日是什么节日| 什么颜色显肤色白| 狗的尾巴有什么作用| 亢进是什么意思| 为什么老做梦| 疟疾是什么病| 918是什么意思| 牙齿挂什么科| 3月27是什么星座| 9月10日是什么日子| 海灵菇是什么东西| 什么是正方形| 发烧42度是什么概念| 仰仗是什么意思| 磨盘有什么风水说法| 表姐的女儿叫什么| 足三里在什么位置图片| 03属什么| 老头晕是什么原因引起的| 木甚念什么| 保和丸有什么功效| 拉屎的时候拉出血来是什么原因| 吃什么补肾最快最有效| 怀孕初期需要注意什么| 成本倒挂什么意思| 鹅什么时候开始下蛋| 吃茶叶蛋有什么好处和坏处| 变蛋吃多了有什么好处和坏处| 长方形的纸可以折什么| 为什么拉黑色的屎| 糖蛋白是什么| 吖什么意思| 碧玺五行属什么| 05年属鸡的是什么命| 敏是什么意思| 心花怒放是什么生肖| hm平方是什么单位| 大便为什么不成形| 孕酮低吃什么补得快| 腕管综合征吃什么药| 六害是什么意思| 咳嗽背部疼是什么原因| 紫癜是什么病| 湿热内蕴吃什么中成药| 女人吃火龙果有什么好处| 玺什么意思| 2001年属什么生肖| 风化是什么意思| 山药与什么食物相克| 五液是指什么| 为什么一进去就射了| 今年37岁属什么生肖| 御是什么意思| 朱是什么颜色| 什么是云母| 肝内脂肪浸润是什么意思| 什么体质的人戴银变黑| 门子是什么意思| 什么是| 锥切手术是什么意思| 七月份有什么水果| 气垫是什么| 表妹是什么意思| 看到黄鼠狼什么预兆| 胃疼发烧是什么原因| 不知不觉是什么意思| 1940年出生属什么生肖| mil是什么单位| 三尖瓣关闭不全是什么意思| 憋气是什么意思| 唐僧取经取的是什么经| 自食其力是什么意思| 高回声是什么意思| 肾挂什么科室| 前列腺肥大是什么症状| 生吃西红柿有什么好处和坏处| 夏天做什么菜| 什么是正方形| 嗔恨心是什么意思| 月经不来是什么原因| 单脱是什么意思| zoe是什么意思| 什么危不什么| 九天揽月是什么意思| 晚上剪指甲有什么说法| 象牙塔比喻什么| 结婚需要什么| 嗓子痛吃什么好| 足内翻是什么样子的| 人乳头瘤病毒51型阳性是什么意思| 前列腺增生用什么药好| 为什么胃有灼热感| 风流是什么意思| 小腿发凉是什么原因造成的| 有气质是什么意思| 心脏病吃什么水果最好| 专科考研需要什么条件| 男性夜间盗汗什么原因| 双鱼女和什么座最配对| 离线缓存是什么意思| 避孕药什么牌子好| 锋芒是什么意思| 支气管肺炎吃什么药| ct腹部平扫能检查什么| 怀孕什么时候打胎最合适| 岔气了吃什么药| 应用心理学是什么| 梦见吃蜂蜜是什么预兆| 什么为力| 大排畸是什么检查| 牙齿松动了有什么办法能固齿吗| 嗓子发炎吃什么水果| iphone5什么时候出的| 月经前乳房胀痛是什么原因| 参乌健脑胶囊适合什么人吃| 狗狗不能吃什么水果| c14阳性是什么意思| 食道炎吃什么药| 窦性心律电轴右偏什么意思| 胸部检查挂什么科| 4月22日什么星座| 旅游带什么| 跖疣用什么药膏能治好| 痄腮是什么意思| 什么解辣| 护士一般是什么学历| 孔子名什么| 月经来潮是什么意思| it是什么牌子的衣服| 什么使我快乐| 癌胚抗原偏高说明什么| asp是什么氨基酸| 双肺门不大是什么意思| 鸾俦是什么意思| 尿痛什么原因| 北京户口有什么好处| 精神恍惚是什么症状| 上皮细胞是什么意思| 烂大街是什么意思| 马克华菲是什么档次| 肝郁是什么意思| 娃娃衫配什么裤子图片| 硬水是什么意思| 左前支阻滞吃什么药| 7月1日什么节| 吃深海鱼油有什么好处和坏处| 泵的扬程什么意思| 什么是肩袖损伤| 腹胀是什么原因引起的| 勇气是什么| 查甲功挂什么科| 孕妇梦见摘桃子是什么意思| 掷是什么意思| 明天叫什么日| mdr是什么意思| 手术后吃什么最有营养| 老本行是什么意思| 清道夫吃什么| 培育是什么意思| 梦见刺猬是什么意思| 头发轻轻一拉就掉了是什么原因| 为什么会心悸| 精神卫生科看什么病| 脸红是什么原因引起的| 努尔哈赤和皇太极是什么关系| 桃园三结义是什么意思| 孽缘是什么意思| 县尉相当于现在什么官| 奔头是什么意思| 田螺小子是什么意思| 参拜是什么意思| 男女授受不亲是什么意思| 脓疱疮是什么原因引起的| 小孩手指脱皮是什么原因| 上炕是什么意思| 高密度脂蛋白偏高是什么意思| 柠檬水喝多了有什么坏处| na医学上是什么意思| 小土豆是什么意思| 太阳是什么| 预防脑梗用什么药效果好| fans是什么意思| 紫癜是什么引起的| 孩子流黄鼻涕吃什么药效果好| 苯佐卡因是什么| 眼睛模糊流泪用什么药| 牛腩是什么| 软饮料是指什么| 女性为什么会得疱疹| 多发息肉是什么意思| 蚊子长什么样| 请问支气管炎吃什么药最有效| 心阳不足吃什么中成药| 急性腹泻拉水吃什么药| 龙眼什么时候成熟| 头发沙发是什么意思| 百度Jump to content

字读什么

From Wikipedia, the free encyclopedia
Advanced Package Tool
Developer(s)The Debian Project
Initial release31 March 1998; 27 years ago (2025-08-05)[1]
Stable release
3.1.0[2] Edit this on Wikidata / 19 May 2025; 2 months ago (19 May 2025)
Repository
Written inC++,[3] shell script,[3] XML,[3] CMake,[3] C,[3] Perl[3] Edit this on Wikidata
Operating systemUnix-like
TypePackage manager
LicenseGPLv2+
Websitewiki.debian.org/AptCLI
百度 接近运动型座椅的设计,让全新卡罗拉的乘坐配置得到提升,坐垫采用更加有韧性的填充物,而前排座椅也更加符合人体臀部的工程学。

Advanced Package Tool (APT) is a free-software user interface that works with core libraries to handle the installation and removal of software on Debian and Debian-based Linux distributions.[4] APT simplifies the process of managing software on Unix-like computer systems by automating the retrieval, configuration and installation of software packages, either from precompiled files or by compiling source code.[4]

Usage

[edit]

APT is a collection of tools distributed in a package named apt. A significant part of APT is defined in a C++ library of functions; APT also includes command-line programs for dealing with packages, which use the library. Three such programs are apt, apt-get and apt-cache. They are commonly used in examples because they are simple and ubiquitous. The apt package is of "important" priority in all current Debian releases, and is therefore included in a default Debian installation. APT can be considered a front end to dpkg, friendlier than the older dselect front end. While dpkg performs actions on individual packages, APT manages relations (especially dependencies) between them, as well as sourcing and management of higher-level versioning decisions (release tracking and version pinning).

APT is often hailed as one of Debian's best features,[by whom?][5][6][7][8] which Debian developers attribute to the strict quality controls in Debian's policy.[9][10]

A major feature of APT is the way it calls dpkg — it does topological sorting of the list of packages to be installed or removed and calls dpkg in the best possible sequence. In some cases, it utilizes the --force options of dpkg. However, it only does this when it is unable to calculate how to avoid the reason dpkg requires the action to be forced.

Installing software

[edit]

The user indicates one or more packages to be installed. Each package name is phrased as just the name portion of the package, not a fully qualified filename (for instance, in a Debian system, libc6 would be the argument provided, not libc6_1.9.6-2.deb). Notably, APT automatically gets and installs packages upon which the indicated package depends (if necessary). This was an original distinguishing characteristic of APT-based package management systems, as it avoided installation failure due to missing dependencies, a type of dependency hell.

Another distinction is the retrieval of packages from remote repositories. APT uses a location configuration file (/etc/apt/sources.list) to locate the desired packages, which might be available on the network or a removable storage medium, for example, and retrieve them, and also obtain information about available (but not installed) packages.

APT provides other command options to override decisions made by apt-get's conflict resolution system. One option is to force a particular version of a package. This can downgrade a package and render dependent software inoperable, so the user must be careful.

Finally, the apt_preferences mechanism allows the user to create an alternative installation policy for individual packages.

The user can specify packages using a POSIX regular expression.

APT searches its cached list of packages and lists the dependencies that must be installed or updated.

APT retrieves, configures and installs the dependencies automatically.

Triggers are the treatment of deferred actions.

Update, upgrade and dist-upgrade

[edit]

Usage modes of apt and apt-get that facilitate updating installed packages include:

  • update is used to resynchronize the package index files from their sources. The lists of available packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when using a Debian archive, this command retrieves and scans the Packages.gz files, so that information about new and updated packages is available.
  • upgrade is used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list. Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, or packages not already installed retrieved and installed. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version.
  • full-upgrade (apt) and dist-upgrade (apt-get), in addition to performing the function of upgrade, also intelligently handles changing dependencies with new versions of packages; apt and apt-get have a "smart" conflict resolution system, and will attempt to upgrade the most important packages at the expense of less important ones if necessary. The /etc/apt/sources.list file contains a list of locations from which to retrieve desired package files.[4] aptitude has a smarter dist-upgrade feature called full-upgrade.[11]

Configuration and files

[edit]

/etc/apt contains the APT configuration folders and files.

apt-config is the APT Configuration Query program.[12] apt-config dump shows the configuration.[13]

Files

[edit]
  • /etc/apt/sources.list:[14] Locations to fetch packages from.
  • /etc/apt/sources.list.d/: Additional source list fragments.
  • /etc/apt/apt.conf: APT configuration file.
  • /etc/apt/apt.conf.d/: APT configuration file fragments.
  • /etc/apt/preferences.d/: Directory with version preferences files. This is where "pinning" is specified, i.e. a preference to get certain packages from a separate source or from a different version of a distribution.
  • /var/cache/apt/archives/: Storage area for retrieved package files.
  • /var/cache/apt/archives/partial/: Storage area for package files in transit.
  • /var/lib/apt/lists/: Storage area for state information for each package resource specified in sources.list
  • /var/lib/apt/lists/partial/: Storage area for state information in transit.

Sources

[edit]

APT relies on the concept of repositories in order to find software and resolve dependencies. For APT, a repository is a directory containing packages along with an index file. This can be specified as a networked or CD-ROM location. As of 14 August 2021, the Debian project keeps a central repository of over 50,000 software packages ready for download and installation.[15]

Any number of additional repositories can be added to APT's sources.list configuration file (/etc/apt/sources.list) and then be queried by APT. Graphical front ends often allow modifying sources.list more simply (apt-setup). Once a package repository has been specified (like during the system installation), packages in that repository can be installed without specifying a source and will be kept up-to-date automatically.

In addition to network repositories, compact discs and other storage media (USB keydrive, hard disks...) can be used as well, using apt-cdrom[16] or adding file:/ URI[17] to the source list file. apt-cdrom can specify a folder other than a CD-ROM, using the -d option (i.e. a hard disk or a USB keydrive). The Debian CDs available for download contain Debian repositories. This allows non-networked machines to be upgraded. One can also use apt-zip.

Problems may appear when several sources offer the same package(s). Systems that have such possibly conflicting sources can use APT pinning to control which sources should be preferred.

APT pinning

[edit]

The APT pinning feature allows users to force APT to choose particular versions of packages which may be available in different versions from different repositories. This allows administrators to ensure that packages are not upgraded to versions which may conflict with other packages on the system, or that have not been sufficiently tested for unwelcome changes.

In order to do this, the pins in APT's preferences file (/etc/apt/preferences) must be modified,[18] although graphical front ends often make pinning simpler.

Front ends

[edit]
Synaptic Package Manager is one of the front ends available for APT.

Several other front ends to APT exist, which provide more advanced installation functions and more intuitive interfaces. These include:

  • Synaptic, a GTK graphical user interface
  • Ubuntu Software Center, a GTK graphical user interface developed by the Ubuntu project
  • aptitude, a console client with CLI and ncurses-based TUI interfaces
  • Adept package manager, a graphical user interface for KDE (deb, rpm, bsd)
  • PackageKit, a D-Bus frontend, maintained by freedesktop.org, powers GNOME Software and KDE Discover.
  • GDebi, a GTK-based tool sponsored for Ubuntu. (There is also a Qt version, available in the Ubuntu repositories as gdebi-kde.)
  • apt-cdrom, a way to add a new CDROM to APT's list of available repositories (sources.lists). It is necessary to use apt-cdrom to add CDs to the APT system, it cannot be done by hand.
  • apt-zip, a way to use apt with removable media, specifically USB flash drives.
  • aptURL, an Ubuntu software package that enables end-user applications to install with a single-click through a browser.[19][20]
  • Cydia, a package manager for jailbroken iOS based on APT (ported to iOS as part of the Telesphoreo project).[21][22]
  • Sileo, like Cydia, a package manager for jailbroken iOS based on newer versions of APT (ported to iOS by the Electra team)
  • gnome-apt, a GTK/GNOME-widget-based graphical front end. Developed by Havoc Pennington[23]
  • Muon discover (previous Muon software center), a Qt-based graphical user interface
  • Hildon application manager (Maemo application), a Maemo front end
  • apticron, a service designed to be run via cron to email notices of pending updates to a system administrator (sysadmin).
  • APT Daemon, a front end that runs as a service to allow users to install software through PolicyKit and is in turn the framework used by Ubuntu software center (along with the Linux Mint software manager).
  • Package installer, part of MX Linux.
  • Apt-offline: A convenient way to make any available non-containerized change to any Debian-type Linux installation without using a direct Internet connection. However, a temporary direct connection can be required, such as to install Apt-offline on some of the relevant types of Linux, and to add PPA's to the sources-list.

APT front ends can:

  • search for new packages;
  • upgrade packages;
  • install or remove packages and
  • upgrade the whole system to a new release.

APT front ends can list the dependencies of packages being installed or upgraded, ask the administrator if packages recommended or suggested by newly installed packages should be installed too, automatically install dependencies and perform other operations on the system such as removing obsolete files and packages.

History

[edit]

The original effort that led to the apt-get program was the dselect replacement project known by its codename Deity.[24] This project was commissioned in 1997 by Brian White, the Debian release manager at the time. The first functional version of apt-get was called dpkg-get and was only intended to be a test program for the core library functions that would underpin the new user interface (UI).[25]

Much of the original development of APT was done on Internet relay chat (IRC), so records have been lost. The 'Deity creation team' mailing list archives include only the major highlights.

The 'Deity' name was abandoned as the official name for the project due to concerns over the religious nature of the name. The APT name was eventually decided after considerable internal and public discussion. Ultimately the name was proposed on IRC, accepted and then finalized on the mailing lists.[26]

APT was introduced in 1998 and original test builds were circulated on IRC. The first Debian version that included it was Debian 2.1, released on 9 March 1999.[27]

In the end the original goal of the Deity project of replacing the dselect user interface was a failure. Work on the user interface portion of the project was abandoned (the user interface directories were removed from the concurrent versions system) after the first public release of apt-get. The response to APT as a dselect method and a command line utility was so great and positive that all development efforts focused on maintaining and improving the tool. It was not until much later that several independent people built user interfaces on top of libapt-pkg.

Eventually, a new team picked up the project, began to build new features and released version 0.6 of APT which introduced the Secure APT feature, using strong cryptographic signing to authenticate the package repositories.[28]

Variants

[edit]

APT was originally designed as a front end for dpkg to work with Debian's .deb packages. A version of APT modified to also work with the RPM Package Manager system was released as APT-RPM.[29] The Fink project has ported APT to Mac OS X for some of its own package management tasks,[30] and APT is also available in OpenSolaris.

apt-file

[edit]

apt-file is a command, packaged separately from APT, to find which package includes a specific file, or to list all files included in a package on remote repositories.[31]

See also

[edit]

References

[edit]
  1. ^ "Initial release". apt package changelog. The Debian project. 31 March 1998. Retrieved 18 December 2021.
  2. ^ "3.1.0". 19 May 2025. Retrieved 20 May 2025.
  3. ^ a b c d e f "The apt - Advanced Package Tool Open Source Project on Open Hub: Languages Page". Open Hub. Retrieved 2 May 2024.
  4. ^ a b c "apt-get(8)". Debian Manpages. Retrieved 18 December 2021.
  5. ^ Byfield, Bruce (9 December 2004). "An apt-get primer". Retrieved 18 December 2021.
  6. ^ "From the archives: the best distros of 2000". Tux radar. Archived from the original on 26 July 2020.
  7. ^ Dorgan, David (19 January 2004). "Migrating to Debian". linux.ie. Archived from the original on 13 May 2006.
  8. ^ "Mobile Linux development with Familiar and a minimal Debian". Mobile Tux. Archived from the original on 15 September 2008.
  9. ^ "Why Debian". Retrieved 18 December 2021.
  10. ^ "Debian policy manual". Retrieved 18 December 2021.
  11. ^ "Discussion on dist-upgrade vs. full-upgrade". Retrieved 18 December 2021.
  12. ^ "apt-config(8)". Debian Manpages. Retrieved 18 December 2021.
  13. ^ "Query APT configuration using apt-config - Debian admin". 2 December 2006. Retrieved 18 December 2021.
  14. ^ "SourcesList". Debian Wiki. Retrieved 18 December 2021.
  15. ^ "Debian 11 "bullseye" released". www.debian.org. Archived from the original on 2025-08-05. Retrieved 2025-08-05.
  16. ^ "apt-cdrom(8)". Debian Manpages. Retrieved 27 December 2021.
  17. ^ e.g. deb file:/mnt/install stable main contrib non-free.{{citation}}: CS1 maint: postscript (link)
  18. ^ "AptConfiguration". Debian Wiki. Retrieved 2025-08-05.
  19. ^ "AptURL". Ubuntu Wiki. Retrieved 27 December 2021.
  20. ^ "How to install software in Ubuntu Linux: A complete guide for newbie". 17 June 2018. Retrieved 27 December 2021.
  21. ^ Jurick, David (2009). iPhone hacks: Pushing the iPhone and iPod touch beyond their limits. O'Reilly Media, Inc. p. 20. ISBN 9780596516642. Retrieved 27 December 2021.
  22. ^ Adhikari, Richard (20 March 2008). "Android, Schmandroid: Linux on the iPhone". LinuxInsider. Retrieved 27 December 2021.
  23. ^ Mullikin, Glenn (December 2001). "The evolution of Debian package management systems". AUUGN. Vol. 22, no. 4. p. 50. ISSN 1035-7521. gnome-apt was written by Havoc Pennington
  24. ^ White, Brian C. (11 April 1997). ""dselect" replacement project ("deity")". deity@lists.debian.org (Mailing list).
  25. ^ Gunthorpe, Jason (2 March 1998). "It's working". deity@lists.debian.org (Mailing list).
  26. ^ Gunthorpe, Jason (19 March 1998). "Re: 2 things (!)". deity@lists.debian.org (Mailing list).
  27. ^ "A brief history of Debian". debian.org. Archived from the original on 24 August 2003.
  28. ^ "Secure APT". Debian Wiki. Retrieved 27 December 2021.
  29. ^ "APT-RPM". apt-rpm.org. Archived from the original on 21 April 2008. Retrieved 27 December 2021.
  30. ^ "Fink - About". www.finkproject.org. Archived from the original on 11 May 2008. Retrieved 27 December 2021.
  31. ^ "Inspecting and extracting Debian package contents". Packagecloud blog. 13 October 2015. Retrieved 27 December 2021.
[edit]
假牙什么材质的最好 旖旎风光是什么意思 荸荠是什么 1977年五行属什么 西红柿对人体有什么好处
全品类是什么意思 hpv是什么病毒 诺如病毒感染吃什么药 肠系膜淋巴结炎吃什么药 巨石强森是什么人种
7月26日什么星座 副脾是什么意思 脚底板发黄是什么原因 坚信的意思是什么 男性脾大是什么原因
女人血稠吃什么食物好 厘清是什么意思 抗体弱阳性是什么意思 牛油果吃了有什么好处 姨妈期能吃什么水果
支原体感染吃什么药hcv8jop1ns1r.cn 1939年属什么hcv8jop9ns3r.cn 栓是什么意思hcv8jop3ns4r.cn 七月十六号是什么星座adwl56.com 小孩夜里哭闹是什么原因hcv8jop4ns3r.cn
孟买血型是什么意思hanqikai.com 妇科炎症吃什么消炎药效果好hcv8jop5ns6r.cn 磁力链接是什么hlguo.com 追随是什么意思hcv9jop5ns5r.cn 鸟飞进家里是什么预兆hcv8jop3ns9r.cn
毒龙是什么意思hcv9jop3ns1r.cn 命里缺什么怎么看hcv9jop6ns5r.cn 开边珠牛皮是什么意思hcv9jop0ns9r.cn 腹肌不对称是什么原因hcv8jop4ns3r.cn 血粘度查什么项目hcv8jop1ns2r.cn
欧巴桑是什么意思dayuxmw.com 琉璃和玻璃有什么区别hcv9jop3ns4r.cn 痄腮是什么意思hcv8jop4ns1r.cn 本性难移是什么生肖hcv8jop1ns4r.cn 白兰地是什么酒hcv9jop8ns1r.cn
百度