自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

我們?nèi)绾蔚弥狶inux上安裝的包來自哪個倉庫?

系統(tǒng) Linux
有時候你可能想知道安裝的軟件包來自于哪個倉庫。這將幫助你在遇到包沖突問題時進行故障排除。因為第三方倉庫擁有最新版本的軟件包,所以有時候當你試圖安裝一些包的時候會出現(xiàn)兼容性的問題。

[[250540]]

 有時候你可能想知道安裝的軟件包來自于哪個倉庫。這將幫助你在遇到包沖突問題時進行故障排除。因為第三方倉庫擁有***版本的軟件包,所以有時候當你試圖安裝一些包的時候會出現(xiàn)兼容性的問題。在 Linux 上一切都是可能的,因為你可以安裝一個即使在你的發(fā)行版系統(tǒng)上不能使用的包。你也可以安裝一個***版本的包,即使你的發(fā)行版系統(tǒng)倉庫還沒有這個版本,怎么做到的呢?這就是為什么出現(xiàn)了第三方倉庫。它們允許用戶從庫中安裝所有可用的包。

幾乎所有的發(fā)行版系統(tǒng)都允許第三方軟件庫。一些發(fā)行版還會官方推薦一些不會取代基礎(chǔ)倉庫的第三方倉庫,例如 CentOS 官方推薦安裝 EPEL 庫。

下面是常用的倉庫列表和它們的詳細信息。

  • CentOS: EPEL、ELRepo 等是 Centos 社區(qū)認證倉庫。
  • Fedora: RPMfusion 倉庫 是經(jīng)常被很多 Fedora 用戶使用的倉庫。
  • ArchLinux: ArchLinux 社區(qū)倉庫包含了來自于 Arch 用戶倉庫的可信用戶審核通過的軟件包。
  • openSUSE: Packman 倉庫 為 openSUSE 提供了各種附加的軟件包,特別是但不限于那些在 openSUSE Build Service 應(yīng)用黑名單上的與多媒體相關(guān)的應(yīng)用和庫。它是 openSUSE 軟件包的***外部軟件庫。
  • Ubuntu:個人軟件包歸檔(PPA)是一種軟件倉庫。開發(fā)者們可以創(chuàng)建這種倉庫來分發(fā)他們的軟件。你可以在 PPA 導航頁面找到相關(guān)信息。同時,你也可以啟用 Cananical 合作伙伴軟件倉庫。

倉庫是什么?

軟件倉庫是存儲特定的應(yīng)用程序的軟件包的集中場所。

所有的 Linux 發(fā)行版都在維護他們自己的倉庫,并允許用戶在他們的機器上獲取和安裝包。

每個廠商都提供了各自的包管理工具來管理它們的倉庫,例如搜索、安裝、更新、升級、刪除等等。

除了 RHEL 和 SUSE 以外大部分 Linux 發(fā)行版都是自由軟件。要訪問付費的倉庫,你需要購買其訂閱服務(wù)。

為什么我們需要啟用第三方倉庫?

在 Linux 里,并不建議從源代碼安裝包,因為這樣做可能會在升級軟件和系統(tǒng)的時候產(chǎn)生很多問題,這也是為什么我們建議從庫中安裝包而不是從源代碼安裝。

在 RHEL/CentOS 系統(tǒng)上我們?nèi)绾蔚弥惭b的軟件包來自哪個倉庫?

這可以通過很多方法實現(xiàn)。我們會給你所有可能的選擇,你可以選擇一個對你來說最合適的。

方法-1:使用 yum 命令

RHEL 和 CentOS 系統(tǒng)使用 RPM 包,因此我們能夠使用 Yum 包管理器 來獲得信息。

YUM 即 “Yellodog Updater, Modified” 是適用于基于 RPM 的系統(tǒng)例如 RHEL 和 CentOS 的一個開源命令行前端包管理工具。

yum 是從發(fā)行版?zhèn)}庫和其他第三方庫中獲取、安裝、刪除、查詢和管理 RPM 包的一個主要工具。

  1. # yum info apachetop
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. * epel: epel.mirror.constant.com
  5. Installed Packages
  6. Name : apachetop
  7. Arch : x86_64
  8. Version : 0.15.6
  9. Release : 1.el7
  10. Size : 65 k
  11. Repo : installed
  12. From repo : epel
  13. Summary : A top-like display of Apache logs
  14. URL : https://github.com/tessus/apachetop
  15. License : BSD
  16. Description : ApacheTop watches a logfile generated by Apache (in standard common or
  17. : combined logformat, although it doesn't (yet) make use of any of the extra
  18. : fields in combined) and generates human-parsable output in realtime.

apachetop 包來自 EPEL 倉庫。

方法-2:使用 yumdb 命令

yumdb info 提供了類似于 yum info 的信息但是它又提供了包校驗和數(shù)據(jù)、類型、用戶信息(誰安裝的軟件包)。從 yum 3.2.26 開始,yum 已經(jīng)開始在 rpmdatabase 之外存儲額外的信息(user 表示軟件是用戶安裝的,dep 表示它是作為依賴項引入的)。

  1. # yumdb info lighttpd
  2. Loaded plugins: fastestmirror
  3. lighttpd-1.4.50-1.el7.x86_64
  4. checksum_data = a24d18102ed40148cfcc965310a516050ed437d728eeeefb23709486783a4d37
  5. checksum_type = sha256
  6. command_line = --enablerepo=epel install lighttpd apachetop aria2 atop axel
  7. from_repo = epel
  8. from_repo_revision = 1540756729
  9. from_repo_timestamp = 1540757483
  10. installed_by = 0
  11. origin_url = https://epel.mirror.constant.com/7/x86_64/Packages/l/lighttpd-1.4.50-1.el7.x86_64.rpm
  12. reason = user
  13. releasever = 7
  14. var_contentdir = centos
  15. var_infra = stock
  16. var_uuid = ce328b07-9c0a-4765-b2ad-59d96a257dc8

lighttpd 包來自 EPEL 倉庫。

方法-3:使用 rpm 命令

RPM 命令 即 “Red Hat Package Manager” 是一個適用于基于 Red Hat 的系統(tǒng)(例如 RHEL、CentOS、Fedora、openSUSE & Mageia)的強大的命令行包管理工具。

這個工具允許你在你的 Linux 系統(tǒng)/服務(wù)器上安裝、更新、移除、查詢和驗證軟件。RPM 文件具有 .rpm 后綴名。RPM 包是用必需的庫和依賴關(guān)系構(gòu)建的,不會與系統(tǒng)上安裝的其他包沖突。

  1. # rpm -qi apachetop
  2. Name : apachetop
  3. Version : 0.15.6
  4. Release : 1.el7
  5. Architecture: x86_64
  6. Install Date: Mon 29 Oct 2018 06:47:49 AM EDT
  7. Group : Applications/Internet
  8. Size : 67020
  9. License : BSD
  10. Signature : RSA/SHA256, Mon 22 Jun 2015 09:30:26 AM EDT, Key ID 6a2faea2352c64e5
  11. Source RPM : apachetop-0.15.6-1.el7.src.rpm
  12. Build Date : Sat 20 Jun 2015 09:02:37 PM EDT
  13. Build Host : buildvm-22.phx2.fedoraproject.org
  14. Relocations : (not relocatable)
  15. Packager : Fedora Project
  16. Vendor : Fedora Project
  17. URL : https://github.com/tessus/apachetop
  18. Summary : A top-like display of Apache logs
  19. Description :
  20. ApacheTop watches a logfile generated by Apache (in standard common or
  21. combined logformat, although it doesn't (yet) make use of any of the extra
  22. fields in combined) and generates human-parsable output in realtime.

apachetop 包來自 EPEL 倉庫。

方法-4:使用 repoquery 命令

repoquery 是一個從 YUM 庫查詢信息的程序,類似于 rpm 查詢。

  1. # repoquery -i httpd
  2.  
  3. Name : httpd
  4. Version : 2.4.6
  5. Release : 80.el7.centos.1
  6. Architecture: x86_64
  7. Size : 9817285
  8. Packager : CentOS BuildSystem
  9. Group : System Environment/Daemons
  10. URL : http://httpd.apache.org/
  11. Repository : updates
  12. Summary : Apache HTTP Server
  13. Source : httpd-2.4.6-80.el7.centos.1.src.rpm
  14. Description :
  15. The Apache HTTP Server is a powerful, efficient, and extensible
  16. web server.

httpd 包來自 CentOS updates 倉庫。

在 Fedora 系統(tǒng)上我們?nèi)绾蔚弥惭b的包來自哪個倉庫?

DNF 是 “Dandified yum” 的縮寫。DNF 是使用 hawkey/libsolv 庫作為后端的下一代 yum 包管理器(yum 的分支)。從 Fedora 18 開始 Aleš Kozumplík 開始開發(fā) DNF,并最終在 Fedora 22 上得以應(yīng)用/啟用。

dnf 命令 用于在 Fedora 22 以及之后的系統(tǒng)上安裝、更新、搜索和刪除包。它會自動解決依賴并使安裝包的過程變得順暢,不會出現(xiàn)任何問題。

  1. $ dnf info tilix
  2. Last metadata expiration check: 27 days, 10:00:23 ago on Wed 04 Oct 2017 06:43:27 AM IST.
  3. Installed Packages
  4. Name : tilix
  5. Version : 1.6.4
  6. Release : 1.fc26
  7. Arch : x86_64
  8. Size : 3.6 M
  9. Source : tilix-1.6.4-1.fc26.src.rpm
  10. Repo : @System
  11. From repo : updates
  12. Summary : Tiling terminal emulator
  13. URL : https://github.com/gnunn1/tilix
  14. License : MPLv2.0 and GPLv3+ and CC-BY-SA
  15. Description : Tilix is a tiling terminal emulator with the following features:
  16. :
  17. : - Layout terminals in any fashion by splitting them horizontally or vertically
  18. : - Terminals can be re-arranged using drag and drop both within and between
  19. : windows
  20. : - Terminals can be detached into a new window via drag and drop
  21. : - Input can be synchronized between terminals so commands typed in one
  22. : terminal are replicated to the others
  23. : - The grouping of terminals can be saved and loaded from disk
  24. : - Terminals support custom titles
  25. : - Color schemes are stored in files and custom color schemes can be created by
  26. : simply creating a new file
  27. : - Transparent background
  28. : - Supports notifications when processes are completed out of view
  29. :
  30. : The application was written using GTK 3 and an effort was made to conform to
  31. : GNOME Human Interface Guidelines (HIG).

tilix 包來自 Fedora updates 倉庫。

在 openSUSE 系統(tǒng)上我們?nèi)绾蔚弥惭b的包來自哪個倉庫?

Zypper 是一個使用 libzypp 的命令行包管理器。Zypper 命令 提供了存儲庫訪問、依賴處理、包安裝等功能。

  1. $ zypper info nano
  2.  
  3. Loading repository data...
  4. Reading installed packages...
  5.  
  6.  
  7. Information for package nano:
  8. -----------------------------
  9. Repository : Main Repository (OSS)
  10. Name : nano
  11. Version : 2.4.2-5.3
  12. Arch : x86_64
  13. Vendor : openSUSE
  14. Installed Size : 1017.8 KiB
  15. Installed : No
  16. Status : not installed
  17. Source package : nano-2.4.2-5.3.src
  18. Summary : Pico editor clone with enhancements
  19. Description :
  20. GNU nano is a small and friendly text editor. It aims to emulate
  21. the Pico text editor while also offering a few enhancements.

nano 包來自于 openSUSE Main 倉庫(OSS)。

在 ArchLinux 系統(tǒng)上我們?nèi)绾蔚弥惭b的包來自哪個倉庫?

Pacman 命令 即包管理器工具(package manager utility ),是一個簡單的用來安裝、構(gòu)建、刪除和管理 Arch Linux 軟件包的命令行工具。Pacman 使用 libalpm 作為后端來執(zhí)行所有的操作。

  1. # pacman -Ss chromium
  2. extra/chromium 48.0.2564.116-1
  3. The open-source project behind Google Chrome, an attempt at creating a safer, faster, and more stable browser
  4. extra/qt5-webengine 5.5.1-9 (qt qt5)
  5. Provides support for web applications using the Chromium browser project
  6. community/chromium-bsu 0.9.15.1-2
  7. A fast paced top scrolling shooter
  8. community/chromium-chromevox latest-1
  9. Causes the Chromium web browser to automatically install and update the ChromeVox screen reader extention. Note: This
  10. package does not contain the extension code.
  11. community/fcitx-mozc 2.17.2313.102-1
  12. Fcitx Module of A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese
  13. Input)

chromium 包來自 ArchLinux extra 倉庫。

或者,我們可以使用以下選項獲得關(guān)于包的詳細信息。

  1. # pacman -Si chromium
  2. Repository : extra
  3. Name : chromium
  4. Version : 48.0.2564.116-1
  5. Description : The open-source project behind Google Chrome, an attempt at creating a safer, faster, and more stable browser
  6. Architecture : x86_64
  7. URL : http://www.chromium.org/
  8. Licenses : BSD
  9. Groups : None
  10. Provides : None
  11. Depends On : gtk2 nss alsa-lib xdg-utils bzip2 libevent libxss icu libexif libgcrypt ttf-font systemd dbus
  12. flac snappy speech-dispatcher pciutils libpulse harfbuzz libsecret libvpx perl perl-file-basedir
  13. desktop-file-utils hicolor-icon-theme
  14. Optional Deps : kdebase-kdialog: needed for file dialogs in KDE
  15. gnome-keyring: for storing passwords in GNOME keyring
  16. kwallet: for storing passwords in KWallet
  17. Conflicts With : None
  18. Replaces : None
  19. Download Size : 44.42 MiB
  20. Installed Size : 172.44 MiB
  21. Packager : Evangelos Foutras
  22. Build Date : Fri 19 Feb 2016 04:17:12 AM IST
  23. Validated By : MD5 Sum SHA-256 Sum Signature

chromium 包來自 ArchLinux extra 倉庫。

在基于 Debian 的系統(tǒng)上我們?nèi)绾蔚弥惭b的包來自哪個倉庫?

在基于 Debian 的系統(tǒng)例如 Ubuntu、LinuxMint 上可以使用兩種方法實現(xiàn)。

方法-1:使用 apt-cache 命令

apt-cache 命令 可以顯示存儲在 APT 內(nèi)部數(shù)據(jù)庫的很多信息。這些信息是一種緩存,因為它們是從列在 source.list 文件里的不同的源中獲得的。這個過程發(fā)生在 apt 更新操作期間。

  1. $ apt-cache policy python3
  2. python3:
  3. Installed: 3.6.3-0ubuntu2
  4. Candidate: 3.6.3-0ubuntu3
  5. Version table:
  6. 3.6.3-0ubuntu3 500
  7. 500 http://in.archive.ubuntu.com/ubuntu artful-updates/main amd64 Packages
  8. *** 3.6.3-0ubuntu2 500
  9. 500 http://in.archive.ubuntu.com/ubuntu artful/main amd64 Packages
  10. 100 /var/lib/dpkg/status

python3 包來自 Ubuntu updates 倉庫。

方法-2:使用 apt 命令

APT 命令 即 “Advanced Packaging Tool”,是 apt-get 命令的替代品,就像 DNF 是如何取代 YUM 一樣。它是具有豐富功能的命令行工具并將所有的功能例如 apt-cacheapt-search、dpkgapt-cdrom、apt-config、apt-ket 等包含在一個命令(APT)中,并且還有幾個獨特的功能。例如我們可以通過 APT 輕松安裝 .dpkg 包,但我們不能使用 apt-get 命令安裝,更多類似的功能都被包含進了 APT 命令。apt-get 因缺失了很多未被解決的特性而被 apt 取代。

  1. $ apt -a show notepadqq
  2. Package: notepadqq
  3. Version: 1.3.2-1~artful1
  4. Priority: optional
  5. Section: editors
  6. Maintainer: Daniele Di Sarli
  7. Installed-Size: 1,352 kB
  8. Depends: notepadqq-common (= 1.3.2-1~artful1), coreutils (>= 8.20), libqt5svg5 (>= 5.2.1), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libqt5core5a (>= 5.9.0~beta), libqt5gui5 (>= 5.7.0), libqt5network5 (>= 5.2.1), libqt5printsupport5 (>= 5.2.1), libqt5webkit5 (>= 5.6.0~rc), libqt5widgets5 (>= 5.2.1), libstdc++6 (>= 5.2)
  9. Download-Size: 356 kB
  10. APT-Sources: http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu artful/main amd64 Packages
  11. Description: Notepad++-like editor for Linux
  12. Text editor with support for multiple programming
  13. languages, multiple encodings and plugin support.
  14.  
  15. Package: notepadqq
  16. Version: 1.2.0-1~artful1
  17. Status: install ok installed
  18. Priority: optional
  19. Section: editors
  20. Maintainer: Daniele Di Sarli
  21. Installed-Size: 1,352 kB
  22. Depends: notepadqq-common (= 1.2.0-1~artful1), coreutils (>= 8.20), libqt5svg5 (>= 5.2.1), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libqt5core5a (>= 5.9.0~beta), libqt5gui5 (>= 5.7.0), libqt5network5 (>= 5.2.1), libqt5printsupport5 (>= 5.2.1), libqt5webkit5 (>= 5.6.0~rc), libqt5widgets5 (>= 5.2.1), libstdc++6 (>= 5.2)
  23. Homepage: http://notepadqq.altervista.org
  24. Download-Size: unknown
  25. APT-Manual-Installed: yes
  26. APT-Sources: /var/lib/dpkg/status
  27. Description: Notepad++-like editor for Linux
  28. Text editor with support for multiple programming
  29. languages, multiple encodings and plugin support.

notepadqq 包來自 Launchpad PPA。

責任編輯:龐桂玉 來源: Linux中國
相關(guān)推薦

2018-07-19 09:20:47

LinuxArchLinuxRPM包

2018-10-29 09:04:24

LinuxCentOS倉庫

2020-04-21 14:21:31

LinuxPython

2021-10-12 08:43:19

LinuxSambaWindows

2019-11-26 09:20:47

LinuxJava

2012-08-24 10:02:53

Pinterest架構(gòu)工程師

2021-08-18 11:19:25

FedoraLinuxJava

2021-09-11 15:41:55

UbuntuDropbox云服務(wù)

2017-03-29 16:18:11

LinuxUbuntuRedmine

2021-07-12 14:47:16

UbuntuZlib代碼

2021-10-09 11:10:25

LinuxJavaUbuntu

2021-03-07 11:46:02

UbuntuLinuxErlang

2012-05-21 10:31:06

LinuxVMware Tool

2021-11-28 06:33:24

Discord消息收發(fā)應(yīng)用 Linux

2019-06-03 11:15:32

Linux軟件包命令

2013-05-10 09:44:47

Windows 8開始按鍵

2011-03-09 09:30:45

Linux安裝LAMP

2014-06-23 10:09:20

MacBook ProLinux

2018-03-28 08:30:01

Linux倉庫應(yīng)用程序

2011-09-08 13:53:20

Linux攝像頭
點贊
收藏

51CTO技術(shù)棧公眾號