redhat 7.7 rpm -qa|xargs rpm -e --nodeps 修复全记录

 

 

1. 准备一个可用的linux系统(测试的话记得快照哦~)

 

 

 

2.骚操作开始:

 rpm -qa|xargs rpm -e --nodeps

 

 

 

 

 

 

3.重启看报错   :/#  

 

 

 

4.系统提示:你降生到了一片漆黑的地方!。。。。什么!新手送了把屠龙刀?扔了!

ls 

 

 

 emm 好像物资挺丰富,我决定删掉 /bin 和 /sbin

 

5.干净了。。。

 

 

6.拯救开始!挂个光盘先~(此步略,U盘虚拟机cdrom,你们爱怎么挂怎么挂,不懂自己百度去)

 

7.进入grub模式,此界面按 'c'

 

 

 

 

8.看看哪个盘可以用

 

 好像都不是,那我放弃!

 

 

 

 

 

 

 9.真是 山重水复疑无路,柳暗花明又一村 ~ 居然进入光盘引导了

 

 选择Troubleshooting → Rescue a CentOS system

 

 

 

 选择1   回车

 

9. 成功进入光盘系统!送你一堆王之宝具!

 

 

10.执行以下指令:

 sh-4.2# mkdir /mnt/cdrom         //千万不要挂载到 /mnt 下 你还挂着个系统呢!

    sh-4.2# blkid   //查看U盘或cd是哪个

    sh-4.2# mount  /dev/sr0 /mnt/cdrom     //挂载cd,我的cd是/dev/sda1 

 sh-4.2# rpm -ivh /mnt/cdrom/Packages/包名 --nodeps --root /mnt/sysimage --force     //一定要指定root,因为你目前的根目录是cd的

 

包名如下:

libestr-0.1.9-2.el7.x86_64
setup-2.8.71-10.el7.noarch
tuned-2.11.0-5.el7.noarch
kbd-misc-1.15.5-15.el7.noarch
lvm2-2.02.185-2.el7.x86_64
nss-softokn-freebl-3.44.0-5.el7.x86_64
openssh-server-7.4p1-21.el7.x86_64
nss-util-3.44.0-3.el7.x86_64
audit-2.8.5-4.el7.x86_64
libsepol-2.5-10.el7.x86_64
aic94xx-firmware-30-6.el7.noarch
info-5.1-5.el7.x86_64
libuuid-2.23.2-61.el7.x86_64
passwd-0.79-5.el7.x86_64
libdb-5.3.21-25.el7.x86_64
btrfs-progs-4.9.1-1.el7.x86_64
gawk-4.0.2-4.el7_3.1.x86_64
libsysfs-2.1.0-16.el7.x86_64
which-2.20-7.el7.x86_64
iwl7260-firmware-22.0.7.0-72.el7.noarch
libattr-2.4.46-13.el7.x86_64
iwl4965-firmware-228.61.2.24-72.el7.noarch
expat-2.1.0-10.el7_3.x86_64
iwl6000-firmware-9.221.4.1-72.el7.noarch
diffutils-3.3-5.el7.x86_64
iwl2000-firmware-18.168.6.1-72.el7.noarch
file-5.11-35.el7.x86_64
gpg-pubkey-f4a80eb5-53a7ff4b
pciutils-libs-3.5.1-3.el7.x86_64
fontpackages-filesystem-1.44-8.el7.noarch
tar-1.26-35.el7.x86_64
perl-parent-0.225-244.el7.noarch
e2fsprogs-libs-1.42.9-16.el7.x86_64
perl-Pod-Escapes-1.04-294.el7_6.noarch
libidn-1.28-4.el7.x86_64
perl-libs-5.16.3-294.el7_6.x86_64
lz4-1.7.5-3.el7.x86_64
perl-Time-Local-1.2300-2.el7.noarch
newt-0.52.15-4.el7.x86_64
perl-macros-5.16.3-294.el7_6.x86_64
hostname-3.13-3.el7.x86_64
perl-Scalar-List-Utils-1.27-248.el7.x86_64
iptables-1.4.21-33.el7.x86_64
perl-Pod-Simple-3.28-4.el7.noarch
device-mapper-persistent-data-0.8.5-1.el7.x86_64
GeoIP-1.5.0-11.el7.x86_64
vim-minimal-7.4.629-6.el7.x86_64
libX11-1.6.5-1.el7.x86_64
libss-1.42.9-16.el7.x86_64
nginx-mod-http-geoip-1.14.0-1.el7.centos.x86_64
libselinux-utils-2.5-14.1.el7.x86_64
nginx-mod-mail-1.14.0-1.el7.centos.x86_64
mozjs17-17.0.0-20.el7.x86_64
python-backports-1.0-8.el7.x86_64
libsemanage-2.5-14.el7.x86_64
supervisor-3.1.4-1.el7.noarch
sg3_utils-libs-1.37-18.el7.x86_64
boost-system-1.53.0-27.el7.x86_64
dmidecode-3.2-3.el7.x86_64
libsmartcols-2.23.2-61.el7.x86_64
numactl-2.0.9-7.el7.x86_64
p11-kit-trust-0.23.5-3.el7.x86_64
libaio-devel-0.3.109-13.el7.x86_64
krb5-libs-1.15.1-37.el7_6.x86_64
shadow-utils-4.6-5.el7.x86_64
libmount-2.23.2-61.el7.x86_64
cracklib-dicts-2.9.0-11.el7.x86_64
gettext-libs-0.19.8.1-2.el7.x86_64
yum-metadata-parser-1.1.4-10.el7.x86_64
libselinux-python-2.5-14.1.el7.x86_64
pgyvpn-2.2.0-1.amd64
pyxattr-0.5.1-5.el7.x86_64
python-linux-procfs-0.4.11-4.el7.noarch
lrzsz-0.12.20-36.el7.x86_64
libssh2-1.8.0-3.el7.x86_64
mariadb-libs-5.5.64-1.el7.x86_64
nss-sysinit-3.44.0-4.el7.x86_64
rpm-libs-4.11.3-40.el7.x86_64
python-pycurl-7.19.0-19.el7.x86_64
alsa-lib-1.1.8-1.el7.x86_64
pth-2.0.7-23.el7.x86_64
gpgme-1.3.2-5.el7.x86_64
json-c-0.11-4.el7_0.x86_64
util-linux-2.23.2-61.el7.x86_64
kmod-20-25.el7.x86_64
systemd-219-67.el7.x86_64
polkit-pkla-compat-0.1-4.el7.x86_64
systemd-sysv-219-67.el7.x86_64
os-prober-1.58-9.el7.x86_64
crontabs-1.11-6.20121102git.el7.noarch
dhcp-common-4.2.5-77.el7.centos.x86_64
grub2-pc-2.02-0.80.el7.centos.x86_64
wpa_supplicant-2.6-12.el7.x86_64
libdrm-2.4.97-2.el7.x86_64
alsa-tools-firmware-1.1.0-1.el7.x86_64
python-slip-dbus-0.4.0-4.el7.noarch
plymouth-scripts-0.8.9-0.32.20140113.el7.centos.x86_64
libgcc-4.8.5-39.el7.x86_64
virt-what-1.18-4.el7.x86_64
grub2-common-2.02-0.80.el7.centos.noarch
firewalld-filesystem-0.6.3-2.el7.noarch
filesystem-3.2-25.el7.x86_64
rsyslog-8.24.0-38.el7.x86_64
grub2-pc-modules-2.02-0.80.el7.centos.noarch
NetworkManager-team-1.18.0-5.el7.x86_64
ncurses-base-5.9-14.20130511.el7_4.noarch
NetworkManager-tui-1.18.0-5.el7.x86_64
tzdata-2019b-1.el7.noarch
selinux-policy-targeted-3.13.1-252.el7.noarch
glibc-common-2.17-292.el7.x86_64
kexec-tools-2.0.15-33.el7.x86_64
nspr-4.21.0-1.el7.x86_64
openssh-clients-7.4p1-21.el7.x86_64
libstdc++-4.8.5-39.el7.x86_64
postfix-2.10.1-7.el7.x86_64
bash-4.2.46-33.el7.x86_64
kernel-3.10.0-1062.el7.x86_64
pcre-8.32-17.el7.x86_64
lshw-B.02.18-13.el7.x86_64
zlib-1.2.7-18.el7.x86_64
biosdevname-0.7.3-2.el7.x86_64
xz-libs-5.2.2-1.el7.x86_64
chrony-3.4-1.el7.x86_64
sed-4.2.2-5.el7.x86_64
dracut-config-rescue-033-564.el7.x86_64
bzip2-libs-1.0.6-13.el7.x86_64
man-db-2.6.3-11.el7.x86_64
chkconfig-1.7.4-1.el7.x86_64
sudo-1.8.23-4.el7.x86_64
libxml2-2.9.1-6.el7_2.3.x86_64
e2fsprogs-1.42.9-16.el7.x86_64
readline-6.2-11.el7.x86_64
iprutils-2.4.17.1-2.el7.x86_64
elfutils-libelf-0.176-2.el7.x86_64
kernel-tools-3.10.0-1062.el7.x86_64
libgcrypt-1.5.3-14.el7.x86_64
iwl100-firmware-39.31.5.1-72.el7.noarch
libffi-3.0.13-18.el7.x86_64
iwl7265-firmware-22.0.7.0-72.el7.noarch
audit-libs-2.8.5-4.el7.x86_64
iwl5150-firmware-8.24.2.2-72.el7.noarch
libacl-2.2.51-14.el7.x86_64
iwl135-firmware-18.168.6.1-72.el7.noarch
cpio-2.11-27.el7.x86_64
iwl6000g2b-firmware-17.168.5.2-72.el7.noarch
sqlite-3.7.17-8.el7.x86_64
ivtv-firmware-20080701-26.el7.noarch
findutils-4.5.11-6.el7.x86_64
iwl5000-firmware-8.83.5.1_1-72.el7.noarch
libnl3-3.2.28-4.el7.x86_64
iwl2030-firmware-18.168.6.1-72.el7.noarch
file-libs-5.11-35.el7.x86_64
iwl1000-firmware-39.31.5.1-72.el7.noarch
libmnl-1.0.3-7.el7.x86_64
iwl6000g2a-firmware-17.168.5.3-72.el7.noarch
libaio-0.3.109-13.el7.x86_64
net-tools-2.0-0.25.20131004git.el7.x86_64
xmlsec1-1.2.20-7.el7_4.x86_64
rsync-3.0.9-18.el7.x86_64
nss-softokn-3.44.0-5.el7.x86_64
libjpeg-turbo-1.2.90-5.el7.x86_64
p11-kit-0.23.5-3.el7.x86_64
fontconfig-2.10.95-11.el7.x86_64
groff-base-1.22.2-8.el7.x86_64
perl-HTTP-Tiny-0.033-3.el7.noarch
kmod-libs-20-25.el7.x86_64
perl-Pod-Perldoc-3.20-4.el7.noarch
libunistring-0.9.3-9.el7.x86_64
perl-Text-ParseWords-3.29-4.el7.noarch
libgomp-4.8.5-39.el7.x86_64
perl-Pod-Usage-1.63-3.el7.noarch
sysvinit-tools-2.88-14.dsf.el7.x86_64
perl-Storable-2.45-3.el7.x86_64
libnfnetlink-1.0.1-4.el7.x86_64
perl-constant-1.27-2.el7.noarch
slang-2.2.4-11.el7.x86_64
perl-Carp-1.26-244.el7.noarch
jansson-2.10-1.el7.x86_64
perl-threads-1.87-4.el7.x86_64
gdbm-1.10-8.el7.x86_64
perl-Filter-1.49-3.el7.x86_64
ethtool-4.8-10.el7.x86_64
perl-PathTools-3.40-5.el7.x86_64
libnetfilter_conntrack-1.0.6-1.el7_3.x86_64
perl-Socket-2.010-4.el7.x86_64
iproute-4.11.0-25.el7.x86_64
perl-File-Path-2.09-2.el7.noarch
libteam-1.27-9.el7.x86_64
perl-Getopt-Long-2.40-3.el7.noarch
ipset-libs-7.1-1.el7.x86_64
gperftools-libs-2.6.1-1.el7.x86_64
acl-2.2.51-14.el7.x86_64
libXau-1.0.8-2.1.el7.x86_64
fuse-2.9.2-11.el7.x86_64
libX11-common-1.6.5-1.el7.noarch
pinentry-0.8.1-17.el7.x86_64
libXpm-3.5.12-1.el7.x86_64
make-3.82-24.el7.x86_64
nginx-filesystem-1.14.0-1.el7.centos.noarch
freetype-2.8-14.el7.x86_64
nginx-mod-http-perl-1.14.0-1.el7.centos.x86_64
linux-firmware-20190429-72.gitddde598.el7.noarch
nginx-mod-stream-1.14.0-1.el7.centos.x86_64
libicu-50.2-3.el7.x86_64
nginx-1.14.0-1.el7.centos.x86_64
snappy-1.1.0-3.el7.x86_64
nginx-all-modules-1.14.0-1.el7.centos.noarch
ustr-1.0.4-16.el7.x86_64
python-backports-ssl_match_hostname-3.4.0.2-4.el7.noarch
kernel-tools-libs-3.10.0-1062.el7.x86_64
python-meld3-0.6.10-1.el7.x86_64
libverto-0.2.5-4.el7.x86_64
libpng12-1.2.50-10.el7.x86_64
libmspack-0.5-0.7.alpha.el7.x86_64
jdk1.8.0_144-1.8.0_144-fcs.x86_64
fuse-libs-2.9.2-11.el7.x86_64
libgearman-1.1.12-18.el7.x86_64
libseccomp-2.3.1-3.el7.x86_64
qrencode-libs-3.4.1-3.el7.x86_64
unzip-6.0-16.el7.x86_64
lsscsi-0.27-6.el7.x86_64
numactl-libs-2.0.9-7.el7.x86_64
libtasn1-4.10-1.el7.x86_64
numactl-devel-2.0.9-7.el7.x86_64
ca-certificates-2018.2.22-70.0.el7_5.noarch
openssl-libs-1.0.2k-19.el7.x86_64
libblkid-2.23.2-61.el7.x86_64
python-2.7.5-86.el7.x86_64
gzip-1.5-10.el7.x86_64
python-decorator-3.4.0-3.el7.noarch
glib2-2.56.1-5.el7.x86_64
libcroco-0.6.12-4.el7.x86_64
libpwquality-1.2.3-5.el7.x86_64
cyrus-sasl-lib-2.1.26-23.el7.x86_64
gettext-0.19.8.1-2.el7.x86_64
python-gobject-base-3.22.0-1.el7_4.1.x86_64
pkgconfig-0.27.1-4.el7.x86_64
python-perf-3.10.0-1062.el7.x86_64
python-slip-0.4.0-4.el7.noarch
pyliblzma-0.5.3-11.el7.x86_64
newt-python-0.52.15-4.el7.x86_64
python-configobj-4.7.2-7.el7.noarch
grubby-8.28-26.el7.x86_64
openssl-1.0.2k-19.el7.x86_64
xmlsec1-openssl-1.2.20-7.el7_4.x86_64
fipscheck-lib-1.4.1-6.el7.x86_64
logrotate-3.8.6-17.el7.x86_64
nss-3.44.0-4.el7.x86_64
nss-tools-3.44.0-4.el7.x86_64
curl-7.29.0-54.el7.x86_64
rpm-4.11.3-40.el7.x86_64
libuser-0.60-9.el7.x86_64
python-urlgrabber-3.10-9.el7.noarch
centos-logos-70.0.6-3.el7.centos.noarch
hardlink-1.0-19.el7.x86_64
libdnet-1.12-13.1.el7.x86_64
gnupg2-2.0.22-5.el7_5.x86_64
rpm-python-4.11.3-40.el7.x86_64
pygpgme-0.3-9.el7.x86_64
yum-3.4.3-163.el7.centos.noarch
device-mapper-1.02.158-2.el7.x86_64
procps-ng-3.3.10-26.el7.x86_64
device-mapper-libs-1.02.158-2.el7.x86_64
dracut-033-564.el7.x86_64
elfutils-libs-0.176-2.el7.x86_64
dbus-libs-1.10.24-13.el7_6.x86_64
dbus-1.10.24-13.el7_6.x86_64
polkit-0.112-22.el7.x86_64
hwdata-0.252-9.3.el7.x86_64
initscripts-9.49.47-1.el7.x86_64
device-mapper-event-libs-1.02.158-2.el7.x86_64
policycoreutils-2.5-33.el7.x86_64
grub2-tools-2.02-0.80.el7.centos.x86_64
cronie-1.4.11-23.el7.x86_64
dhcp-libs-4.2.5-77.el7.centos.x86_64
openssh-7.4p1-21.el7.x86_64
dhclient-4.2.5-77.el7.centos.x86_64
grub2-tools-extra-2.02-0.80.el7.centos.x86_64
selinux-policy-3.13.1-252.el7.noarch
lvm2-libs-2.02.185-2.el7.x86_64
NetworkManager-1.18.0-5.el7.x86_64
libpciaccess-0.14-1.el7.x86_64
ebtables-2.0.10-16.el7.x86_64
alsa-firmware-1.0.28-2.el7.noarch
teamd-1.27-9.el7.x86_64
dbus-python-1.1.1-9.el7.x86_64
python-firewall-0.6.3-2.el7.noarch
plymouth-core-libs-0.8.9-0.32.20140113.el7.centos.x86_64
autoconf-2.69-11.el7.noarch
telnet-0.17-64.el7.x86_64
plymouth-0.8.9-0.32.20140113.el7.centos.x86_64
centos-release-7-7.1908.0.el7.centos.x86_64
firewalld-0.6.3-2.el7.noarch
basesystem-10.0-7.el7.centos.noarch
open-vm-tools-10.3.0-2.el7.x86_64
kbd-legacy-1.15.5-15.el7.noarch
grub2-2.02-0.80.el7.centos.x86_64
glibc-2.17-292.el7.x86_64
authconfig-6.2.8-30.el7.x86_64
ncurses-libs-5.9-14.20130511.el7_4.x86_64
kbd-1.15.5-15.el7.x86_64
libselinux-2.5-14.1.el7.x86_64
microcode_ctl-2.1-53.el7.x86_64
libcom_err-1.42.9-16.el7.x86_64
parted-3.1-31.el7.x86_64
popt-1.13-16.el7.x86_64
xfsprogs-4.5.0-20.el7.x86_64
grep-2.20-3.el7.x86_64
sg3_utils-1.37-18.el7.x86_64
libgpg-error-1.12-3.el7.x86_64
rootfiles-8.1-11.el7.noarch
libcap-ng-0.7.5-4.el7.x86_64
iwl105-firmware-18.168.6.1-72.el7.noarch
libcap-2.22-10.el7.x86_64
iwl6050-firmware-41.28.5.1-72.el7.noarch
lua-5.1.4-15.el7.x86_64
iwl3945-firmware-15.32.2.9-72.el7.noarch
libxslt-1.1.28-5.el7.x86_64
iwl3160-firmware-22.0.7.0-72.el7.noarch
libtool-ltdl-2.4.2-22.el7_3.x86_64
libnl3-cli-3.2.28-4.el7.x86_64
lyx-fonts-2.2.3-1.el7.noarch
libassuan-2.1.0-3.el7.x86_64
perl-podlators-2.5.1-3.el7.noarch
xz-5.2.2-1.el7.x86_64
perl-Encode-2.51-7.el7.x86_64
libedit-3.0-12.20121213cvs.el7.x86_64
perl-Exporter-5.68-3.el7.noarch
tcp_wrappers-libs-7.6-77.el7.x86_64
perl-Time-HiRes-1.9725-3.el7.x86_64
lzo-2.06-8.el7.x86_64
perl-threads-shared-1.43-6.el7.x86_64
keyutils-libs-1.5.8-3.el7.x86_64
perl-File-Temp-0.23.01-3.el7.noarch
less-458-9.el7.x86_64
perl-5.16.3-294.el7_6.x86_64
ipset-7.1-1.el7.x86_64
libxcb-1.12-1.el7.x86_64
libdb-utils-5.3.21-25.el7.x86_64
gd-2.0.35-26.el7.x86_64
libpng-1.5.13-7.el7_2.x86_64
nginx-mod-http-xslt-filter-1.14.0-1.el7.centos.x86_64
ncurses-5.9-14.20130511.el7_4.x86_64
nginx-mod-http-image-filter-1.14.0-1.el7.centos.x86_64
gmp-6.0.0-15.el7.x86_64
python-setuptools-0.9.8-7.el7.noarch
libndp-1.2-9.el7.x86_64
libmcrypt-2.5.8-13.el7.x86_64
libdaemon-0.14-7.el7.x86_64
perl-Data-Dumper-2.145-3.el7.x86_64
libfastjson-0.99.4-3.el7.x86_64
m4-1.4.16-10.el7.x86_64
coreutils-8.22-24.el7.x86_64
python-libs-2.7.5-86.el7.x86_64
libpcap-1.5.3-9.el7.x86_64
cracklib-2.9.0-11.el7.x86_64
shared-mime-info-1.8-4.el7.x86_64
pam-1.1.8-22.el7.x86_64
gobject-introspection-1.56.1-1.el7.x86_64
libutempter-1.1.6-4.el7.x86_64
python-iniparse-0.4-9.el7.noarch
python-schedutils-0.4-6.el7.x86_64
bind-export-libs-9.11.4-9.P2.el7.x86_64
fipscheck-1.4.1-6.el7.x86_64
nss-pem-1.0.3-7.el7.x86_64
libcurl-7.29.0-54.el7.x86_64
openldap-2.4.44-21.el7_6.x86_64
binutils-2.27-41.base.el7.x86_64
libpipeline-1.2.3-3.el7.x86_64
rpm-build-libs-4.11.3-40.el7.x86_64
yum-plugin-fastestmirror-1.1.31-52.el7.noarch
kpartx-0.4.9-127.el7.x86_64
cryptsetup-libs-2.0.3-5.el7.x86_64
systemd-libs-219-67.el7.x86_64
elfutils-default-yama-scope-0.176-2.el7.noarch
iputils-20160308-10.el7.x86_64
grub2-tools-minimal-2.02-0.80.el7.centos.x86_64
cronie-anacron-1.4.11-23.el7.x86_64
NetworkManager-libnm-1.18.0-5.el7.x86_64
dracut-network-033-564.el7.x86_64
device-mapper-event-1.02.158-2.el7.x86_64
pciutils-3.5.1-3.el7.x86_64
fxload-2002_04_11-16.el7.x86_64
dbus-glib-0.100-7.el7.x86_64
python-pyudev-0.15-9.el7.noarch

 

posted @ 2020-04-01 23:47  caya  阅读(2663)  评论(0编辑  收藏  举报