How to check system repositories configuration

Created:

2017-04-26 04:03:50 UTC

Modified:

2017-08-08 13:22:09 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to check system repositories configuration

Applicable to:

  • Plesk for Linux

Question

How to check system repositories configuration?

Answer

For Yum on RedHat-based systems:

1. yum must have base and updates repositories enabled:

# yum repolist enabled

base

updates

extras

2. yum must be able to download and install packages from the OS vendor's repositories:

# yum makecache

...

Metadata Cache Created

For APT on Debian-based systems:

1. APT must have updates and security repositories added to /etc/apt/sources.list. For example:

deb ftp://ftp.us.debian.org/debian-security wheezy/updates main contrib non-free

2. APT must be able to download and install packages from repositories:

# apt-get update

...

Reading package lists... Done

Have more questions? Submit a request
Please sign in to leave a comment.