首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

package-cleanup

为什么这么说呢? 卸载deb包时候,可以连不要的依赖关系包一起删除,但是多如牛毛的rpm却不可以。 这个真的是rpm的痛! yum仅仅能在线安装rpm,但是只能在安装的时候解决依赖关系,卸载的时候却不行。 不过,有个工具可以专门解决rpm依赖关系:package-cleanup Options:   -h, --help           show this help message and exit   --problems           List dependency problems in the local RPM database   --leaves             List leaf nodes in the local RPM database   --all                When listing leaf nodes also list leaf nodes that are                        not libraries   --orphans            List installed packages which are not available from                        currenly configured repositories.   -q, --quiet          Print out nothing unecessary   -y                   Agree to anything asked   -d, --dupes          Scan for duplicates in your rpmdb   --cleandupes         Scan for duplicates in your rpmdb and cleans out the                        older versions   --oldkernels         Remove old kernel and kernel-devel packages   --count=KERNELCOUNT  Number of kernel packages to keep on the system                        (default 2)   --keepdevel          Do not remove kernel-devel packages when removing                        kernels   -c CONFFILE          config file location Please specify either --problems, --leaves, --orphans or --oldkernels 例如,你不小心安装了gnome-games,然后马上把这个卸载。你会发现只卸载了gnome-games,那些“包庇”gnome-games的“同党”还留在你的硬盘里! 这时,你输入:package-cleanup --leaves 就会列出一系列的关系包,都是在rpm数据库里没有被依赖的依赖包。 把这些包统统remove,你的硬盘从此干净了。

01

解决linux安装软件:/lib/ld-linux.so.2: bad ELF interpreter问题

# arm-linux-gcc hello.c -o tt /home/gl/usr/local/arm/4.3.2/bin/arm-linux-gcc: /home/gl/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录 /home/gl/usr/local/arm/4.3.2/bin/arm-linux-gcc:行3: /home/gl/usr/local/arm/4.3.2/bin/arm-none-linux-gnueabi-gcc: 成功 [root@austgl gl]# yum install ld-linux.so.2 已加载插件:langpacks, presto, refresh-packagekit 解决依赖关系 --> 执行事务检查 ---> 软件包 glibc.i686.0.2.16-28.fc18 将被 安装 --> 处理依赖关系 libfreebl3.so(NSSRAWHASH_3.12.3),它被软件包 glibc-2.16-28.fc18.i686 需要 --> 处理依赖关系 libfreebl3.so,它被软件包 glibc-2.16-28.fc18.i686 需要 --> 执行事务检查 ---> 软件包 nss-softokn-freebl.i686.0.3.14.3-1.fc18 将被 安装 --> 完成依赖关系计算 ^[^A 依赖关系解决

019

linux下源码安装

源码安装:配置(configure)、编译(make)、安装(make install),所有操作中间错误可以忽略,最后段末尾统一报错。 ####1.配置  configure:生成Makefile的shell脚本  文件结构如下:   <文件夹>     |-configure.in     |-Makefile.am     |-acconfig.h     |-<源码文件>       |-tt.c       |-qq.c       |-qq.h       |-Makefile.am  其中configure.in作为./configure的配置输入;makefile.am通过automake生成makefile.in再由./configure生成makefile;acconfig.h由autoheader生成config.h.in再由./configure生成config.h  configure.h使用autoconf和automake命令的shell脚本,可以通过autoscan自动生成或手写  acconfig.h包含了configure.in中未定义的宏 autoscan–>autoheader–>aclocal–>automake|autoconf

04
领券