Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to list repositories that have been enabled or activated on Linux

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to list the repositories that have been enabled or activated on Linux". The explanation in this article is simple and clear and easy to learn and understand. Please follow the editor's train of thought to study and learn "how to list warehouses that have been enabled or activated on Linux".

What is a warehouse?

The central location for storing specific program packages is a software repository.

All Linux distributions maintain their own repositories and allow users to download and install these packages to their machines.

Each warehouse provider provides a set of package management tools to manage their warehouse, such as search, installation, update, upgrade, removal, and so on.

Most Linux distributions are free software, with the exception of RHEL and SUSE, where you need to buy subscriptions to access their repositories.

List enabled libraries on RHEL/CentOS

RHEL and CentOS systems use RPM package management, so we can use the Yum package manager to view this information.

YUM, which means "Yellowdog Updater,Modified", is a command-line front end of an open source package manager for RPM-based systems such as RHEL and CentOS.

YUM is the primary tool for obtaining, installing, deleting, querying, and managing RPM packages from distribution repositories and other third-party libraries.

The RHEL-based system mainly provides the following three main warehouses. These warehouses are enabled by default.

Base: it contains all the core and basic packages.

Extras: it provides CentOS with additional functionality without breaking upstream compatibility or updating basic components. This is an upstream warehouse with additional CentOS packages.

Updates: it provides bug fix packs, security packs, and enhancement packs.

# yum repolist or # yum repolist enabledLoaded plugins: fastestmirrorDetermining fastest mirrors * epel: ewr.edge.kernel.orgrepo id repo name statusbaseapace 7Universe x86x64 CentOS-7-Base 9911 thanks epelink x86 million 64 Extra Packages For Enterprise Linux 7-x86 "64 12687 extraspact7 x86" 64 CentOS-7-Extras How to list enabled packages on Fedora in 403 updated dates CentOS-7 7Compact x86march 64 CentOS-7-Updates 1348repolist: 24349

DNF means "Dandified yum". We can say that DNF is the next generation of yum package manager, using hawkey/libsolv as the back end. Since Fedroa 18, Ale has been developing DNF since Kozuml í k, which is finally implemented / released on Fedora 22.

DNF is used to install, upgrade, search, and remove packages on Fedora 22 and later systems. It automatically solves the dependency problem and makes the installation of the package smooth without any trouble.

Because of many problems that Yum has not solved for a long time, Yum has now been replaced by DNF. You asked why he didn't patch Yum. Ale YUM Kozumpll í k explained that patching was technically too difficult and that the YUM team could not afford these changes immediately, as well as other problems, with 56k lines of code for YUM and 29k lines of code for Kozuml. Therefore, there is no choice but to fork.

Fedora mainly provides the following two main warehouses. These libraries will be enabled by default.

Fedora: it includes all core packages and basic packages.

Updates: it provides bug fixes, security packs, and enhancements from stable distributions.

# dnf repolist or # dnf repolist enabledLast metadata expiration check: 0:02:56 ago on Wed 10 Oct 2018 06:12:22 PM IST.repo id repo name statusdocker-ce-stable Docker CE Stable-x86room64 6*fedora Fedora 26-x86'64 53912home_mhogomchungu mhogomchungu's Home Project (Fedora_25) 19home_moritzmolch_gencfsm Gnome Encfs Manager (Fedora_25) 5mystro256-gnome-redshift Copr repo for gnome-redshift owned by mystro256 6nodesource Node.js Packages for Fedora Linux 26-x86'64 83rabiny-albert Copr repo for albert owned by rabiny 3*rpmfusion-free RPM Fusion for Fedora 26-Free 536*rpmfusion-free-updates RPM Fusion for Fedora 26-Free-Updates 278* Rpmfusion-nonfree RPM Fusion for Fedora 26-Nonfree 202*rpmfusion-nonfree-updates RPM Fusion for Fedora 26-Nonfree-Updates 95*updates Fedora 26-x86 warehouse 64-Updates how to list the enabled repositories on Debian/Ubuntu

Debian-based systems use APT/APT-GET package management, so we can use the APT/APT-GET package manager to get this information.

APT, which means "Advanced Packaging Tool", replaces apt-get, just as DNF replaces Yum. It has a wealth of command-line tools, including all the functions in one command (apt), such as apt-cache, apt-search, dpkg, apt-cdrom, apt-config, apt-key, etc., as well as several other unique features. For example, we can easily install the .dpkg package through APT, but we cannot get similar functionality through APT-GET as contained in the APT command. APT replaces APT-GET because of unresolved problems in APT-GET.

Apt-get is a powerful command-line tool for automatically downloading and installing new packages, upgrading existing packages, updating package index lists, and upgrading entire Debian-based systems.

# apt-cache policyPackage files: 100 / var/lib/dpkg/status release a=now 500 http://ppa.launchpad.net/peek-developers/stable/ubuntu artful/main amd64 Packages release vandals 17.10, apt-cache policyPackage files: 100 / LPML 500 http://ppa.launchpad.net/notepadqq-team/notepadqq/ubuntu artful/main amd64 Packages release vs. 17.10 LPMAQ: 100 / LPPAantha notepadqcopyright teamlynotepadqqmen teamlynotepadqqcopyright axiartfulrecovernessartfulmlmlingNotepadqqgrammar B=amd64 origin ppa.launchpad.net 500 http://dl.google.com/linux/chrome/deb stable/main amd64 Packages release vault 1.0 b=amd64 origin ppa.launchpad.net, Inc.,a=stable,n=stable,l=Google,c=main,b=amd64 origin dl.google.com 500 https://download.docker.com/linux/ubuntu artful/stable amd64 Packages release oasis DockerLetter CE,c=stable,b=amd64 origin download.docker.com 500 http://security.ubuntu.com/ubuntu artful-security/multiverse amd64 Packages release vault 17.10 cognate Ubuntu mater axiartfulsecurity Origin security.ubuntu.com http://security.ubuntu.com/ubuntu artful-security/restricted i386 Packages release vault 17.10, origin security.ubuntu.com origin security.ubuntu.com 500 Packages release i386 origin security.ubuntu.com.. Origin in.archive.ubuntu.com 500 http://in.archive.ubuntu.com/ubuntu artful/restricted amd64 Packages release vaulted 17.10 title origin in.archive.ubuntu.com 500 http://in.archive.ubuntu.com/ubuntu artful/main i386 Ubuntu Packages release vault 17.10 title origin in.archive.ubuntu.com origin in.archive.ubuntu.com 500 http://in.archive.ubuntu.com/ubuntu artful/main amd64 Packages release Origin in.archive.ubuntu.comPinned packages: how to list enabled repositories on openSUSE

OpenSUSE uses zypper package management, so we can use zypper package management to get more information.

Zypper is the command line package management for suse and openSUSE distributions. It is used to install, update, search, remove packages and manage warehouses, execute various queries, and so on. Zypper uses the ZYpp system Management Library (libzypp) as the backend.

# zypper repos # | Alias | Name | Enabled | GPG Check | Refresh--+---+ -+-1 | packman-repository | packman-repository | Yes | (r) Yes | Yes 2 | google-chrome | google-chrome | Yes | (r) Yes | Yes 3 | Home_lazka0_ql-stable | Stable Quod Libet / Ex Falso Builds (openSUSE_42.1) | Yes | (r) Yes | No 4 | repo-non-oss | openSUSE-leap/42.1-Non-Oss | Yes | (r) Yes | Yes 5 | repo-oss | openSUSE-leap/42.1-Oss | Yes | | (r) Yes | Yes 6 | repo-update | openSUSE-42.1-Update | Yes | (r) Yes | Yes 7 | repo-update-non-oss | openSUSE-42.1-Update-Non-Oss | Yes | (r) Yes | Yes |

List warehouse and URI.

# zypper lr-u # | Alias | Name | Enabled | GPG Check | Refresh | URI-- + -+- -- 1 | packman-repository | packman-repository | Yes | (r) Yes | Yes | http://ftp.gwdg.de/pub/linux/packman/suse/openSUSE_Leap_42.1/ 2 | google -chrome | google-chrome | Yes | (r) Yes | Yes | http://dl.google.com/linux/chrome/rpm/stable/x86_64 3 | home_lazka0_ql-stable | Stable Quod Libet / Ex Falso Builds (openSUSE_42.1) | Yes | (r) Yes | No | http:// Download.opensuse.org/repositories/home:/lazka0:/ql-stable/openSUSE_42.1/4 | repo-non-oss | openSUSE-leap/42.1-Non-Oss | Yes | (r) Yes | Yes | http://download.opensuse.org/distribution/leap/42.1/repo/non-oss/ 5 | repo-oss | openSUSE-leap/ 42.1-Oss | Yes | (r) Yes | Yes | http://download.opensuse.org/distribution/leap/42.1/repo/oss/ 6 | repo-update | openSUSE-42.1-Update | Yes | (r) Yes | Yes | http://download.opensuse.org / update/leap/42.1/oss/ 7 | repo-update-non-oss | openSUSE-42.1-Update-Non-Oss | Yes | (r) Yes | Yes | http://download.opensuse.org/update/leap/42.1/non-oss/

List warehouses by priority.

# zypper lr-p # | Alias | Name | Enabled | GPG Check | Refresh | Priority--+---+ -+-1 | packman-repository | packman-repository | Yes | (r) Yes | Yes | 99 2 | google-chrome | google-chrome | | Yes | (r) Yes | Yes | 993 | home_lazka0_ql-stable | Stable Quod Libet / Ex Falso Builds (openSUSE_42.1) | Yes | (r) Yes | No | 99 4 | repo-non-oss | openSUSE-leap/42.1-Non-Oss | Yes | (r) Yes | Yes | 99 5 | repo | -oss | openSUSE-leap/42.1-Oss | Yes | (r) Yes | Yes | 99 6 | repo-update | openSUSE-42.1-Update | Yes | (r) Yes | Yes | 99 7 | repo-update-non-oss | openSUSE-42.1-Update-Non- Oss | Yes | (r) Yes | Yes | 99 how to list enabled warehouses on Arch Linux

Arch Linux-based systems use pacman package management, so we can use pacman package management to obtain this information.

Pacman means "package manager utility". Pacman is a command-line utility for installing, building, removing, and managing Arch Linux packages. Pacman uses libalpm, the Arch Linux package management library, as the backend to do these operations.

# pacman-Syy:: Synchronizing package databases... Core 132.6 KiB 1524K/s 00:00 [#] 100% extra 1859.0 KiB 750K/s 00:02 [# # #] 100% community 3.5 MiB 149K/s 00:24 [# # # #] 100% multilib 182.7 KiB 1363K/s 00:00 [#] 100% how to use INXI Utility to list enabled warehouses on Linux

Inix is a very useful tool for checking hardware information on Linux. It also provides a lot of options to get all the hardware information on Linux. I have never found any other program on Linux that is so useful. It is bifurcated by locsmif from the ancient and eccentric infobash.

Inix is a program that can quickly display hardware information, CPU, hard disk, Xorg, desktop, kernel, GCC version, process, memory usage and many other useful information. It is also used in forum technical support and debugging tools.

This utility will display data information for all distribution repositories, such as RHEL, CentOS, Fedora, Debain, Ubuntu, LinuxMint, ArchLinux, openSUSE, Manjaro, and so on.

# inxi-rRepos: Active apt sources in file: / etc/apt/sources.list deb http://in.archive.ubuntu.com/ubuntu/ yakkety main restricted deb http://in.archive.ubuntu.com/ubuntu/ yakkety-updates main restricted deb http://in.archive.ubuntu.com/ubuntu/ yakkety universe deb http://in.archive.ubuntu.com/ubuntu/ yakkety-updates universe Deb http://in.archive.ubuntu.com/ubuntu/ yakkety multiverse deb http://in.archive.ubuntu.com/ubuntu/ yakkety-updates multiverse deb http://in.archive.ubuntu.com/ubuntu/ yakkety-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu yakkety-security main restricted deb http://security.ubuntu.com/ubuntu yakkety-security universe deb http: / / security.ubuntu.com/ubuntu yakkety-security multiverse Active apt sources in file: / etc/apt/sources.list.d/arc-theme.list deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/ / Active apt sources in file: / etc/apt/sources.list.d/snwh-ubuntu-pulp-yakkety.list deb http://ppa.launchpad.net/ Snwh/pulp/ubuntu yakkety main, thank you for your reading. The above is the content of "how to list warehouses that have been enabled or activated on Linux". After the study of this article, I believe you have a deeper understanding of how to list warehouses that have been enabled or activated on Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report