1、搜索软件包信息

    apt-cache search

    apt-cache search yum

 

2、查看软件包信息

    apt-cache show rpm

 

3、安装软件

    apt-get install rpm

    选项: apt-get reinstall 覆盖安装

       -f         修复安装

 

4、卸载,与YUM类似

    apt-get remove rpm

    选项: apt-get autoremove rpm   自动解决依赖关系

       --purge              不报留配置文件

 

5、更新软件源

    apt-get update

 

6、更新已安装软件包

    apt-get upgrade  

【这节课最重要的是要学会Linux中的一种学习方法!!!】