我想卸载这些libboost
库。我在控制台中写道:
sudo apt-get remove libboost-*
但更精确地查看控制台输出,我注意到apt-get
已准备好删除几个看起来像的包完全地与无关libboost
虽然我可能不会每月使用一次compiz
、ubuntu-desktop
、 或unity
,但我不希望它们被删除。我不明白它们被编程为删除?
所以我想知道依赖树中是否会出现混乱,是否有任何操作可以使情况恢复正常?
更准确地说,控制台输出的结尾是:
The following packages were automatically installed and are no longer required:
libtorque2 texlive-fonts-recommended libopenmpi1.3 libibverbs-dev tipa mpi-default-dev lyx-common libnuma1 gccxml texlive-fonts-recommended-doc libibve
libicu-dev gwibber libopenmpi-dev
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
akonadi-server aptitude compiz compiz-fusion-plugins-extra compiz-fusion-plugins-main compiz-plugins compiz-plugins-extra compiz-plugins-main compiz-pl
kdepim-runtime libboost-all-dev libboost-date-time-dev libboost-date-time1.46-dev libboost-date-time1.46.1 libboost-dbg libboost-dev libboost-doc libbo
libboost-filesystem1.46-dev libboost-filesystem1.46.1 libboost-graph-dev libboost-graph-parallel-dev libboost-graph-parallel1.46-dev libboost-graph-par
libboost-graph1.46-dev libboost-graph1.46.1 libboost-iostreams-dev libboost-iostreams1.46-dev libboost-iostreams1.46.1 libboost-math-dev libboost-math1
libboost-mpi-dev libboost-mpi-python-dev libboost-mpi1.46-dev libboost-mpi1.46.1 libboost-program-options-dev libboost-program-options1.46-dev libboost
libboost-python-dev libboost-python1.46-dev libboost-python1.46.1 libboost-regex-dev libboost-regex1.40.0 libboost-regex1.46-dev libboost-regex1.46.1 l
libboost-serialization1.46-dev libboost-serialization1.46.1 libboost-signals-dev libboost-signals1.46-dev libboost-signals1.46.1 libboost-system-dev li
libboost-system1.46.1 libboost-test-dev libboost-test1.46-dev libboost-test1.46.1 libboost-thread-dev libboost-thread1.46-dev libboost-thread1.46.1 lib
libboost-wave1.46-dev libboost-wave1.46.1 libboost1.46-dbg libboost1.46-dev libboost1.46-doc libtorrent-rasterbar6 lyx python-kde4 qbittorrent software
tasksel-data ubuntu-desktop uex unity
0 upgraded, 0 newly installed, 77 to remove and 4 not upgraded.
After this operation, 489 MB disk space will be freed.
Do you want to continue [Y/n]? n
答案1
依赖树是未损坏。
使用apt-rpdepends
我得到的命令行:
$ sudo apt-rdepends unity | grep boost
Reading package lists... Done
Building dependency tree
Reading state information... Done
Depends: libboost-serialization1.46.1 (>= 1.46.1-1)
libboost-serialization1.46.1
事实上,所有这些可执行文件正在使用 libboost,各种版本号,最大的结论就是我一定不能卸载libboost……