求帮忙!

系统安装、升级讨论
回复
头像
helloqi
帖子: 14
注册时间: 2010-09-20 2:31
送出感谢: 0
接收感谢: 0

求帮忙!

#1

帖子 helloqi » 2011-01-08 1:56

哪位大侠能把/var/lib/dpkg下的内容贴出來供参考一下,就是
cd /var/lib/dpkg && ls -a
的运行结果,本人不小心将这些东东mv到/var/lib/dpkg/info目录下而无法分辨了……
头像
pocoyo
论坛版主
帖子: 25878
注册时间: 2008-03-25 15:49
来自: 谁知道?
送出感谢: 5 次
接收感谢: 9 次
联系:

Re: 求帮忙!

#2

帖子 pocoyo » 2011-01-08 2:01

代码: 全选

pocoyo@debian:/var/lib/dpkg$ ls -a
.   alternatives  available-old  diversions      info  parts         statoverride-old  status-old  updates
..  available     cmethopt       diversions-old  lock  statoverride  status            triggers
pocoyo@debian:/var/lib/dpkg$ 
头像
helloqi
帖子: 14
注册时间: 2010-09-20 2:31
送出感谢: 0
接收感谢: 0

Re: 求帮忙!

#3

帖子 helloqi » 2011-01-08 12:37

pocoyo 写了:

代码: 全选

pocoyo@debian:/var/lib/dpkg$ ls -a
.   alternatives  available-old  diversions      info  parts         statoverride-old  status-old  updates
..  available     cmethopt       diversions-old  lock  statoverride  status            triggers
pocoyo@debian:/var/lib/dpkg$ 
多谢pocoyo,昨晚我把info目录下的某类文件转移到了临时文件夹tem中,这些类型的文件如下:
qi@QI:/var/lib/dpkg/info$ sudo mv *.config tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.prerm tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.postrm tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.md5sums tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.list tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.conffiles tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.templates tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.shlibs tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.symbols tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.postinst tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.preinst tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.clilibs tem/
qi@QI:/var/lib/dpkg/info$ sudo mv *.triggers tem/
剩余的基本就是下面那些文件(夹)了,我把他们搞到了/var/lib/dpkg目录下,自己捣鼓的结果是这样的:
. available-old diversions-old lock status
.. buc.control~ foxitreader.control~ parts status-old
alternatives cmethopt info statoverride triggers
available diversions info.bak statoverride-old updates
结果比比pocoyo列出的多了 buc.control~ foxitreader.control~两个文件,这两个是应用软件相关的,估计也应该放在info目录。
回复

回到 “系统安装和升级”