要是把系统文件误删了该怎么办
Tofloor
poster avatar
hanqiwei9
deepin
2019-09-24 05:35
Author
要是把ls命令删除了,redhat 可以用rpm2cpio命令来提取文件,deepin是不是只能重装安装包了?

Reply Favorite View the author
All Replies
avatar
funtoo
deepin
2019-09-24 05:54
#1
deb包是ar压缩的,用ar命令拆包,把data.tar.xz解压到/覆盖就完事了。
而且,只要apt或dpkg没坏,重新安装一遍包不是更省事么?
Reply View the author
avatar
aida
deepin
2019-09-24 21:22
#2

使用apt-file 查找删除的文件所在的包

sudo apt install apt-file

sudo apt update

apt-file seach ×××

然后通过这个命令重装 ***属于那个包

sudo apt install --reinstall  ×××
Reply View the author