博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
pkgmgmt: Comparison between different Linux Systems..
阅读量:7029 次
发布时间:2019-06-28

本文共 1838 字,大约阅读时间需要 6 分钟。

found this .. already done by precedents..

installation:

aptitude installapt-get installyum installpacman -S

searching..

aptitude searchapt-cache searchyum searchpacman -Ss

update db & upgrade..

aptitude update && aptitude upgrade && aptitude dist-upgradeapt-get update && apt-get upgrade && apt-get dist-upgradeyum update && yum upgradepacman -Syu

install dependencies..

aptitude build-depapt-get build-depyum-builddeppacman -S

getting source code:

aptitude sourceapt-get source yumdownloader --source yaourt -G

remove single pkg..

aptitude removeapt-get removeyum removepacman -R

remove pkg and its deps..

aptitude remove " seems cannot deal with depsapt-get autoremoveyum autoremovepacman -Rss

remove pkg without removing the pkg dependent on it..

~~~pacman -Rdd

search db for certain file..

aptitude search 're'apt-file search 're' || dpkg-query -S /path/to/fileyum whatprovides 're'pacman -Fysx 're'

 check for optional pkg-cooperation for certain pkg:

~~~pacman -Qi

 check pktmgmt history cmds:

~ || apt-history from ~/.bashrc~ || apt-history from ~/.bashrcyum historyls /var/cache/pacman/pkg || cat /var/log/pacman.log

undo changes using pktmgmt tools..

~~yum history undo idxcd /var/cache/pacman/pkg; pacman -U "the undo pkg"

clean all installation package caches:

aptitude cleanapt-get cleanyum clean allpacman -Scc

clean installation package caches that cannot be downloaded from repo anymore, which likely these caches are the most useless.

aptitude autocleanapt-get autoclean~~

install cross build toolchains:

TBDdpkg --add-architecture amd64/i386/armhf; apt-get update; apt-get install crossbuild-essential-armhf.. [ also sources.list file should be modified like deb [arch=i386] ]TBDTBD

View package changelog:

aptitudeapt-get changelog pkgrpm -q --changelog pkgpacman -Qc pkg

 

转载于:https://www.cnblogs.com/sansna/p/5722627.html

你可能感兴趣的文章
java较全的面试题
查看>>
day3
查看>>
软件程序编码
查看>>
感觉好累
查看>>
使用ant制作hadoop1.1.2的eclipse插件(转载)
查看>>
Css的transform和transition
查看>>
POJ1386Play on Words(欧拉回路)
查看>>
configparser 文件的生成和读写
查看>>
20个PHP程序性能优化的方法
查看>>
关于游戏平衡性工作内容——王者荣耀英雄伤害附录
查看>>
47种常见的浏览器兼容性问题大汇总
查看>>
数据结构与算法预热--线性表是什么?
查看>>
Winform自定义控件实例
查看>>
Siebel NextRecord And DeleteRecord In Loops Skips Record
查看>>
batch normalization在测试时的问题
查看>>
Python时间和日期
查看>>
【BZOJ4298】[ONTAK2015]Bajtocja
查看>>
为什么C语言中int的表示范围是-32768~32767
查看>>
有关位运算的基础知识和应用
查看>>
框架dubbox的简单使用
查看>>