Sunday, 27 February 2022
Thursday, 18 November 2021
HandyCache black
HandyCache_list_Format_1
False#~#------------------- Ðåêëàìà -------------------#~##~##~#0
False#~#(\b)([abclmntv]|ek|lit|ng|pr|soft)?bn(rs?|nr)?[^a-z]#~#tbn\d+\.google\.com#~##~#0
False#~#(\b)partners?\.#~##~##~#0
Saturday, 25 September 2021
Rebuild Default Repository Centos 8
/etc/distro.repos.d
- Create mkdir /opt/tmp cd /opt/tmp-repo
- Download file centos-repos-8.1-1.1911.0.8.el8.x86_64.rpm (sesuaikan dengan “cat /etc/centos–release” atau “rpm —query centos–release“)
wget http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-repos-8.1-1.1911.0.8.el8.x86_64.rpm - Extract file
Rebuild RPM Database in CentOS 8
Download
git clone https://github.com/facebookincubator/dcrpm.git
cd dcrpm
python setup.py install
Atau download scara manual kemudian hasil exstrak di copy ke /var/lib/rpm
mkdir /opt/rpm8/
cp -avr /var/lib/rpm /opt/rpm8/
tar -zcvf opt/rpm8/rpmdb-$(date +"%d%m%Y").tar.gz /var/lib/rpm
rm -f /var/lib/rpm/__db*
/usr/lib/rpm/rpmdb_verify /var/lib/rpm/Packages
# cd /var/lib/rpm/
mv Packages Packages.back
/usr/lib/rpm/rpmdb_dump Packages.back | /usr/lib/rpm/rpmdb_load Packages
/usr/lib/rpm/rpmdb_verify Packages
rpm -qa >/dev/null #output is discarded to enable printing of errors only
rpm -vv --rebuilddb
dnf update
dnf clean packages
Subscribe to:
Posts (Atom)