Skip to main content
53 votes
Accepted

How to enable PowerTools repository in CentOS 8?

You can enable it with the following commands: yum install dnf-plugins-core And then: yum config-manager --set-enabled powertools Or: yum config-manager --set-enabled PowerTools You can also just ...
Nasir Riley's user avatar
  • 2,180
31 votes

Use git commands with another path rather than the actual working dir

I had success using the git -C option. Taken from the Git documentation: Run as if git was started in <path> instead of the current working directory. It is very important that the -C option ...
Gogowitsch's user avatar
16 votes
Accepted

How to install mariadb on amazon linux

I was able to install the MariaDB 5.5 CentOS repository list (created 2016-05-09 04:06 UTC). Create the following file: sudo vi /etc/yum.repos.d/maria.repo Add the following contents to the file ...
XP.'s user avatar
  • 174
16 votes
Accepted

Is the ppa:ondrej/php repository safe?

The PPA is maintained by Ondřej Surý, a Debian developer who has been packaging PHP for Debian since PHP 5. It's up to you whether that fits your own definition of "safe", whatever that is.
ThatGraemeGuy's user avatar
12 votes
Accepted

MySQL Repository Key Expired

TLDR; The one-liner that fixes this is the following: sudo apt-key adv --recv-keys --keyserver ha.pool.sks-keyservers.net 5072E1F5 Which basically fetches the new key and installs it into the ...
Stuggi's user avatar
  • 3,596
11 votes

how to choose the correct repository for new software on Centos

Notice than the most "official" solution to install recent versions of various software on Red Hat / CentOS are Software Collections. Red Hat Software Collections version 2.3 provides both php 5.6 ...
Remi Collet's user avatar
  • 2,146
8 votes
Accepted

How do I mount the CentOS 7 ISO and add it as a yum repository

The repo file is already present on your installed CentOS system, as /etc/yum.repos.d/CentOS-Media.repo. [root@localhost ~]# cat /etc/yum.repos.d/CentOS-Media.repo # CentOS-Media.repo # # This repo ...
Michael Hampton's user avatar
8 votes

How to enable PowerTools repository in CentOS 8?

To get more info, run :- yum info epel-release Execute the following command:- sudo yum install epel-release enable the PowerTools repository since EPEL packages may depend on packages from it:- ...
Sukhjinder Singh's user avatar
8 votes
Accepted

When installing docker on Ubuntu, why isn't it as easy as apt-get install docker?

Since I wrote this, there are at least two new versions: the snap version (sudo snap install docker), which works well but isn't the latest and does not support all the bells and whistles that the ...
Alexis Wilke's user avatar
  • 2,316
7 votes
Accepted

PHP 7 and Centos/Redhat

You select an enterprise distribution for its long term stability. The tools included in your enterprise Linux distribution such as Python, gcc, PHP, Ruby, Perl, Java etc. get the same support life ...
HBruijn's user avatar
  • 81k
7 votes
Accepted

RHEL/CentOS - Is remi repo safe for for audits, etc?

We cannot know what policies, controls, and software stack you have. That's the point of audits, to verify your procedures in your environment. Review your policies and procedures. You should be ...
John Mahowald's user avatar
6 votes

How to know from which yum repository a package has been installed?

The simplest and most straightforward approach without installing any extra tools, greping or outputting extraneous information is simply: yum list installed [package name] The third column will ...
Scott Buchanan's user avatar
6 votes

Best practice for proxying package repositories

We use Squid for this; the nice thing about squid is that you can set individual expiry of objects based on a pattern match, fairly easily, which allows the metadata from the yum repo to be purged ...
Andrew's user avatar
  • 504
6 votes

How can I enable PowerTools repository in RHEL 8?

CentOS and RHEL are actually different, despite one being "clone" of the other. The canonical name for the repository in question is actually CodeReady Linux Builder. However, it is ...
Danila Vershinin's user avatar
6 votes

How we Fix the APT repository errors Debian os

You can try the archive repos, like this: deb [trusted=yes] http://archive.debian.org/debian/ stretch main non-free contrib deb-src [trusted=yes] http://archive.debian.org/debian/ stretch main non-...
Mitya's user avatar
  • 148
5 votes

Best practice for proxying package repositories

That's a definitive use case for a proxy. A normal proxy, not a reverse-proxy (aka. load balancers). The most well-known and free and open-source is squid. Luckily it's one of the few good open-...
user5994461's user avatar
  • 3,038
5 votes

Mark rpm package as automatically installed

With DNF To unmark a package as user installed (ie. the package will be removed by autoremove if it is not a dependency of a user installed package): dnf mark remove [package name or wildcard] ...
burneddi's user avatar
  • 151
5 votes
Accepted

Installing yum packages on airgapped (offline) CentOS 6 system

If you are concerned about compatibility between installed release and latest stable, you may want to determine your centos version in /etc/redhat-release and to use packages from http://vault.centos....
Andrew's user avatar
  • 238
5 votes
Accepted

primary.sqlite.bz2 not found on private repo

I think that I've found the answer yesterday night, at least for the moment I'm not facing the problems descrived before. The solution is simple, avoid that client keep a local cache of the repos. ...
Abel's user avatar
  • 322
5 votes
Accepted

How to install RPM Fusion repository with Ansible on Fedora 32 Server virtual machine?

Don't use command to install packages. This has no hope of idempotence and will fail in various and subtle ways. The reason these are skipped is that the os_family fact is never Fedora. It is set to ...
Michael Hampton's user avatar
5 votes
Accepted

Remi: Which repository contains what?

As a general rule you should enable remi-safe, remi and remi-modular (but all three of these should already be enabled). These repos together contain the packages and module streams you expected to ...
Michael Hampton's user avatar
5 votes

Is the ppa:ondrej/php repository safe?

Sadly, you'll never know. When using Personal Package Archive (PPA) you're by your own. There's a post which explains with more detailed caveats : https://askubuntu.com/questions/35629/are-ppas-safe-...
ivspenna's user avatar
5 votes

CentOS 8.3 - How to switch a PHP installation from Remi to AppStream?

(RHEL 8.4+) The same way you switch any other module to a different stream: dnf module switch-to php:7.4 Note that this will fail if you used any remi packages that are not in the new module stream, ...
Michael Hampton's user avatar
4 votes

list all packages from a repository in ubuntu / debian

Just for fun or if you do not trust the caches, you can query a source's declared packages from, well, the source. The repositories are pretty much websites, either HTTP or FTP. Your system has ...
Vlad Didenko's user avatar
4 votes

How can I version control a mirrored upstream repository?

Michael Hampton referenced an answer that names Katello and Spacewalk, Satellite is the product RedHat offers to accomplish that. Katello is to Satellite what Fedora is to RedHat (according to this) ...
fuero's user avatar
  • 9,809
4 votes

Best practice for proxying package repositories

This won't solve all your tasks, but maybe this is still helpful. Despite the name, apt-cacher-ng doesn't only work with Debian and derivatives, and is a caching proxy. Specialized for package ...
gxx's user avatar
  • 5,661
4 votes
Accepted

How to know from which yum repository *URL* a package has been installed?

The repo URLs are in the yum configuration files in the /etc/yum.repos.d directory. Keep in mind that most CentOS repos use mirrorlists, which contain the URLs of every possible CentOS mirror, and ...
Michael Hampton's user avatar
4 votes
Accepted

Correct way to update an RPM package in a local repository

The good way to maintain local repo is to establish kind of replication process (rsync, wget) from the original site and then update the information in repo. The command to update is: createrepo --...
Romeo Ninov's user avatar
  • 6,167
4 votes
Accepted

Can't install unzip on RedHat Enterprise Linux Server 7

Check that this host has an active RHEL subscription. unzip has been packaged by Red Hat for a long time.
John Mahowald's user avatar
4 votes
Accepted

Determine available architectures of an apt repo without adding as a source

You don't need to browse the repo as a directory. Knowing all the repo properties (from the string you use to add the repo), you are guaranteed to know the precise URL (a direct link) of the release ...
Nikita Kipriyanov's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible