`
ubuntu
  • 浏览: 107800 次
  • 来自: ...
文章分类
社区版块
存档分类
最新评论

Cleaning up your Ubuntu Installation

阅读更多

(from http://www.yatblog.com/2007/04/22/cleaning-up-your-ubuntu-installation/)


After upgrading my Ubuntu 6.10 installation to the newest 7.04 (Feisty Fawn) over a thousand packages were upgraded. So it’s obvious that there were left some dependencies which are not needed anymore. Sure everything still works, but I like to clean up things on Operating Systems I use productively. That’s why I wrote a script to clean up those dependencies with a single command. Here’s what you should do if you want to clean up your Ubuntu Installation (no matter which version) as well:

  1. Download and install the deborphan package. This is the application that finds unnecessary dependencies: “sudo apt-get install deborphan”
  2. Execute this command until there are no more dependencies: “apt-get remove $(deborphan)”

Alternatively, you can also put that command into a script, if you don’t want to remember that line:

  1. Download the script here: del_orph_pkgs.txt
  2. Change the filename from “del_orph_pkgs.txt” to “del_orph_pkgs.sh” and do a “chmod +x del_orph_pkgs.sh” so we can execute it.
  3. Execute the script with “sudo del_orph_pkgs.sh” multiple times until it won’t find anymore dependencies. This is necessary, because those libraries, which are not needed anymore, might have dependencies them self, which become obsolete. So another execution cycle will eliminate those as well.
分享到:
评论

相关推荐

    The steps to cleaning up a system.zip

    "The steps to cleaning up a system.zip" 文件很可能包含了一套详细的操作指南,帮助用户有效地清理他们的系统。下面将详细介绍这个过程,并提供一些关键知识点。 1. **检查并删除临时文件**:系统在运行过程中会...

    win7-usb-3.0制作工具

    《win7-usb-3.0制作工具:高效便捷的系统安装新途径》 在数字化时代,电脑系统安装不再局限于传统的光盘,U盘作为便携式的存储设备,逐渐成为系统安装的主流方式。"win7-usb-3.0制作工具"就是这样一款专为制作U盘...

    Kaxaml 推出1.8版本

    Kaxaml is a lightweight XAML ... It also has some basic support for intellisense and some fun plugins (including one for snippets, one for cleaning up your XAML and for rendering your XAML to an image).

    Statistical Data Cleaning with Applications in R

    Enables the reader to design data cleaning processes for either one-off analytical purposes or for setting up production systems that clean data on a regular basis. Explores statistical techniques for...

    Clean.Data.1785284010

    If you are a data scientist of any level, beginners included, and interested in cleaning up your data, this is the book for you! Experience with Python or PHP is assumed, but no previous knowledge of ...

    MAGIX Video Sound Cleaning Lab.part3

    MAGIX Video Sound Cleaning Lab.part3MAGIX Video Sound Cleaning Lab.part3MAGIX Video Sound Cleaning Lab.part3

    Cody's data cleaning techniques using SAS 2nd Edition

    ### Cody's Data Cleaning Techniques Using SAS 2nd Edition #### 核心知识点概览: 1. **数据清理的重要性** 2. **使用 PROC FREQ 列出字符变量的值** 3. **利用 DATA 步骤检查无效值** 4. **介绍 VERIFY、TRIM...

    [Getting and Cleaning data] Quiz 4

    This is codes for quiz for "getting and cleaning data" in coursera.

    KunLun9016 升级HBA卡固件时FWupgrade小系统halt问题故障案例分析

    这是因为系统镜像文件未完全加载成功,且开始执行"Starting Cleaning Up and Shutting Down Daemons."守护程序时,出现网络不稳定现象,则导致守护程序执行失败打印,以及系统 halt。 四、解决方案 为了解决该问题...

    MAGIX Video Sound Cleaning Lab.part1

    MAGIX Video Sound Cleaning Lab.part1MAGIX Video Sound Cleaning Lab.part1MAGIX Video Sound Cleaning Lab.part1

    MAGIX Video Sound Cleaning Lab.part2

    MAGIX Video Sound Cleaning Lab.part2MAGIX Video Sound Cleaning Lab.part2MAGIX Video Sound Cleaning Lab.part2

    [Getting and Cleaning data] swirl

    This is notes for "getting and cleaning data" using swirl package

    U盘安装原版WIN7系统时弹出错误提示

    在使用U盘安装原版Windows 7系统时,可能会遇到一个常见的问题,即在安装过程中出现“缺少所需的CD/DVD驱动器设备驱动程序”的错误提示,导致安装进程受阻。这个错误是由于Windows 7安装程序无法正确识别IDE类型的...

    How to Set Up Cleaning Slots and Import Cleaning Tapes for the I40/I80 Library

    昆腾磁带库(ScalarI40/I80)设置清洁槽和导入清洁磁带的步骤涉及几个关键的技术知识点,具体包括Web用户界面(WebGUI)操作、磁带库分区设置、清洁槽配置、清洁磁带的导入以及锁定/解锁I/E(输入/输出)站的流程。...

    Your Excel Survival Kit pdf

    chapter shows you how to set up a list so that your data is entered accurately and completely. It shows you how to set up your data so that you can easily get whatever you need out of it later on. It ...

    [Getting and Cleaning data] Week 2

    This is notes for "getting and cleaning data" in coursera

    [Getting and Cleaning data] Week 3

    This is notes for "getting and cleaning data" in coursera.

    Cleaning your website with Ajax_Creating Next-Generation, Highly Dynamic, Off-line Capable

    ### 清理网站使用Ajax:创建下一代高度动态、可离线使用的Web应用 #### 标题解析 - **清理网站使用Ajax**:标题暗示了文章的主题是关于如何利用Ajax技术来改进现有网站的功能与用户体验。 - **创建下一代高度动态、...

    data_cleaning_scitech.pdf

    《data_cleaning_scitech.pdf》文档提供了关于数据清洗过程中的各种知识点和技术操作。以下将详细阐述文档中的核心内容。 首先,文档提及了数据变量的统计检验,包括峰度检验(kurtosistest)、正态性检验...

Global site tag (gtag.js) - Google Analytics