Centos: Difference between revisions

From DWIKI
Tony (talk | contribs)
mNo edit summary
Tony (talk | contribs)
Tag: wikieditor
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
To make it do anything at all:
To make it do anything at all:
  yum install epel-release
  yum install epel-release
=HOWTO=
== Locales ==
localectl status
localectl list-locales
localectl set-locale LANG=locale_name
Package: glibc-langpack-*


=FAQ=
=FAQ=
Line 7: Line 17:
==reset root password==
==reset root password==
http://www.tecmint.com/reset-forgotten-root-password-in-rhel-centos-and-fedora/
http://www.tecmint.com/reset-forgotten-root-password-in-rhel-centos-and-fedora/
==add module on 7==
modprobe --first-time foo
==Failed to validate GPG signature for mysql-community-common==
Check https://dev.mysql.com/doc/refman/8.0/en/checking-rpm-signature.html
And try
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023
==Could not retrieve mirrorlist==
Look at
sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
## TODO fix the pipe escapes
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
and
yum clean all

Latest revision as of 07:59, 29 April 2025

To make it do anything at all:

yum install epel-release


HOWTO

Locales

localectl status
localectl list-locales
localectl set-locale LANG=locale_name

Package: glibc-langpack-*

FAQ

network install url

http://mirror.centos.org/centos/7/os/x86_64

reset root password

http://www.tecmint.com/reset-forgotten-root-password-in-rhel-centos-and-fedora/


add module on 7

modprobe --first-time foo


Failed to validate GPG signature for mysql-community-common

Check https://dev.mysql.com/doc/refman/8.0/en/checking-rpm-signature.html

And try

rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2023


Could not retrieve mirrorlist

Look at

sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
    1. TODO fix the pipe escapes
sed -i 's|#baseurl=http://mirror.centos.org%7Cbaseurl=http://vault.centos.org%7Cg' /etc/yum.repos.d/CentOS-*

and

yum clean all