rpmreaper和rpmorphan简介

rpmreaper

这个工具本来是用作清理系统中无用以及它们所依赖的包,rpmreaper有很直观的ncurses界面来展示已安装的包和它们依赖关系的树形图。

安装

我这里是直接使用的源码包安装,下载页面

[root@localhost rpmreaper]# tar zxf rpmreaper-0.2.0.tar.gz
[root@localhost rpmreaper]# cd rpmreaper-0.2.0 
[root@localhost rpmreaper]# make
[root@localhost rpmreaper]# make install

 安装需要依赖rpm-devel.x86_64和ncurses-devel.x86_64两个RPM包 
  

然后直接运行rpmreaper就可以使用

[root@localhost rpmreaper]# rpmreaper

rpmorphan

rpmdep是一个命令行工具,可以显示已安装包的完整包依赖关系图。该工具会分析RPM包的依赖性,从完整的排完序的拓扑图中摘取部分包的信息,形成列表展示给用户。该工具的输出结果可以直接使用到Dotty(可视化展示工具)中去。

安装

同样我这里也是使用源码包来安装,下载页面

[root@localhost rpmorphan]# tar xzf rpmorphan-1.15.tar.gz
[root@localhost rpmorphan]# cd rpmorphan-1.15/
[root@localhost rpmorphan-1.15]# make
available target are :
make all : same as make install
make help : this help
make install : install software
make installdoc : install software documentation
make uninstall : remove software
make uninstalldoc : remove software documentation
### for project packagers only ###########
make alldist : build all packages
make check : check perl syntaxe
make clean : remove temporary files
make dist : build a tar.gz package
make html : build html doc from pod
make man : build man page from pod
make rpm : build an rpm package
[root@localhost rpmorphan-1.15]# make install
pod2man rpmorphan.pl > rpmorphan.1
mkdir -p              /usr/bin
install -m 755 rpmorphan.pl rpmusage.pl rpmdep.pl rpmduplicates.pl rpmextra.pl  /usr/bin
for fic in rpmorphan rpmusage rpmdep rpmduplicates rpmextra;do cd /usr/bin && ln -s $fic.pl $fic; done;
cd /usr/bin && ln -s rpmorphan grpmorphan
mkdir -p              /usr/lib/rpmorphan/
install -m 755 rpmorphan-lib.pl rpmorphan-curses-lib.pl rpmorphan-tk-lib.pl /usr/lib/rpmorphan/
mkdir -p                /usr/share/man/man1
install -m 644 rpmorphan.1 rpmusage.1 rpmdep.1 rpmduplicates.1 rpmextra.1 /usr/share/man/man1
mkdir -p                /var/lib/rpmorphan
install -m 644 keep     /var/lib/rpmorphan
mkdir -p /usr/lib/rpmorphan/locale
for lang in en fr_FR; do d=/usr/lib/rpmorphan/locale/$lang; mkdir --parents $d; (cd locale/$lang && install --mode=644 rpmorphan_trans.pl $d); done
mkdir -p                /var/log
touch   /var/log/rpmorphan.log
chmod 640 /var/log/rpmorphan.log
mkdir -p                /etc//logrotate.d/
install -m 644 rpmorphan.logrotate /etc//logrotate.d//rpmorphan
install -m 644 rpmorphanrc.sample /etc//rpmorphanrc
[root@localhost rpmorphan-1.15]# rpmdep.pl -dot gzip.dot gzip #我这里用gzip为例
[root@localhost rpmorphan-1.15]# dot -Tpng -o output.png gzip.dot #将会在当前目录生成output.png图片

友情链接: 教你如何在Fedora,CentOS,RHEL中检查RPM包的依赖性

你可能感兴趣的:(RPM_package,Linux_admin)