Jul 21, 2020 · “list yum installed” is a popular command to list all installed packages on the system. In the newer version of YUM, the repository which installed the package is listed together. Some repos also append a unique “repo” tag to the release. With this info, we can grep all packages installed by a particular repo:
Operations with the list of repositories. yum repolist all; yum repolist disabled you may list the disabled repositories or simply all of them; yum repolist enabled and re-enable them; Adding a Yum Repository . To tell your server which repository to use, you need to create a file with a name that ends in .repo in the directory /etc/yum.repos.d Jun 12, 2017 · To list only enabled repos, run the following command: $ yum repolist enabled. To list only disabled repos, enter: $ yum repolist disabled. In Fedora: $ sudo dnf repolist List installed packages in DEB based systems. Run the following command to view the list of installed packages in DEB based systems like Debian, Ubuntu, Linux Mint etc. How to clear the yum cache: When a package is downloaded, installed and is removed there is a chance that the package may still be saved/stored in the yum’s cache. So to clean all the cached packages from the enabled repository cache directory, login as root and execute the following: yum clean packages Here's one way to do it, the crux of it is the *Repo-baseurl:" which is reported by the yum repolist command: # curl -s --dump-header - `yum repolist rhcd -v | grep Repo-baseurl | awk '{print $2}'` -o /dev/null HTTP/1.1 200 OK Date: Fri, 17 May 2013 09:58:30 GMT Server: Apache/2.2.3 (CentOS) Connection: close Transfer-Encoding: chunked Content-Type: text/html;charset=ISO-8859-1 Disable all repositories and then enable just selected repo. $ yum --disablerepo="*" --enablerepo="google" list available Loaded plugins: dellsysidplugin2, refresh-packagekit Available Packages google-chrome-beta.i386 5.0.307.9-39052 google google-chrome-unstable.i386 5.0.322.2-38810 google google-desktop-linux.i386 1.2.0-0088 google picasa.i386 PostgreSQL Yum Repository . You will find details on PostgreSQL related RPMs for Fedora / Red Hat / CentOS / Oracle Linux, like pgAdmin, Slony-I, PostGIS, etc. Important update: Announcing "common" repository. In April 2020, we introduced the "common" repository. This requires a repository RPM update. Please read the news item for details.
I am sure most of you use many YUM repositories to install softwares on any RPM based distributions like RHEL, CentOS, Fedora etc. Sometimes, you might want to install a software from a group of specific repositories, or you may want to disable all repositories, and install a package from a single repository.
Code: Select all [root@localhost yum.repos.d]# cat CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. I know how to use rpm to list the contents of a package (rpm -qpil package.rpm).However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM.
May 24, 2019 · I was able to setup the YUM repo on a server VM and then added the path in the repo file in the client VM. Now, on the server side, i can install any package and groups. On the client side however, only packages can be installed using YUM but listing or installing groups fail.
All .repo files contain repository information (similar to the [repository] sections of /etc/yum.conf). yum collects all repository information from .repo files and the [repository] section of the /etc/yum.conf file to create a master list of repositories to use for transactions. If reposdir is not set, yum uses the default directory /etc/yum