Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today!
Try Our New Product Showcase!
Find the answer to your Linux question:
Advertisement
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > How to uninstall unrequired dependencies?

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Forums
Linux Articles
Product Showcase
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Free Publications




Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 11-29-2007   #1 (permalink)
Linux Newbie
 
Join Date: Apr 2007
Posts: 199
Question How to uninstall unrequired dependencies?

Eventually I'll install something, just to try it little and eventually keep it, and many times I'll want to uninstall it. OK. But I've noticed that the package manager (adept) installs its dependencies, but will not remove them with the program. And to figure which of the program's dependencies is not a dependency of anything else is very hard do to, if possible at all.

I've also looked for logs but the closest things I've found in /var/logs (dpkg.log.# files) are logs of a few months old history of installing and uninstalling...

Is there some program or command that will verify automatically which packages are not being used by anything? I was reading about it, apparently there's "apt-get autoremove" command, but only in ubuntu, and there's something analog in synaptic, which I think that is the "local/obsolete" status... but it lists the very browser I'm using in it.
the dsc is offline  



Reply With Quote
Old 11-29-2007   #2 (permalink)
linuxforums.guy
 
Join Date: May 2004
Posts: 14,182
Here are a couple HowTos regarding indepth cleanup of apt-get systems:

How to spring-clean an Apt-based distro | Free Software Magazine

Cleaning up a Ubuntu GNU/Linux system -- Ubuntu Geek

Hopefully one or both of them will help.
__________________
oz

--> new here? read this first
--> please post all requests for computer support in the forums - thanks!
ozar is offline   Reply With Quote
Old 11-29-2007   #3 (permalink)
Linux Engineer
 
Thrillhouse's Avatar
 
Join Date: Jun 2006
Location: Arlington, VA, USA
Posts: 1,379
Apparently, aptitude will remove dependencies but synaptic and apt-get will not. These differences in package managers is one of the main reasons why I never could quite adapt to Ubuntu. However, if you just want to do some clean up you can run:
Code:
sudo apt-get autoclean
or
Code:
sudo apt-get clean
From the apt-get man page:
Quote:
clean
clean clears out the local repository of retrieved package files. It removes everything but the lock file from /var/cache/apt/archives/ and /var/cache/apt/archives/partial/. When APT is used as a dselect( method, clean is run automatically. Those who do not use dselect will likely want to run apt-get clean from time to time to free up disk space.
autoclean
Like clean, autoclean clears out the local repository of retrieved package files. The difference is that it only removes package files that can no longer be downloaded, and are largely useless. This allows a cache to be maintained over a long period without it growing out of control. The configuration option APT::Clean-Installed will prevent installed packages from being erased if it is set to off.
EDIT: Smiley face not intended.
Thrillhouse is offline   Reply With Quote
Old 11-30-2007   #4 (permalink)
Linux Newbie
 
Join Date: Apr 2007
Posts: 199
I've tried aptitude, but I had a little accident (that thing seems to have been designed to be uninteligible) and now I'm with a weird cursor in fluxbox, and I don't know how set "industrial" back. But, besides that, it freed me almost 100MB, apparently with no other collateral damage, as far as I could notice.
the dsc is offline   Reply With Quote
Old 11-30-2007   #5 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 2,694
apt-get clean and apt-get autoclean are for removing the package install files that were downloaded.

apt-get autoremove

This is what you are looking to use to get rid of anything installed that isn't depended on by something else
coopstah13 is offline   Reply With Quote
Old 11-30-2007   #6 (permalink)
Linux Newbie
 
Join Date: Apr 2007
Posts: 199
I think that the "autoremove" parameter exists only on Ubuntu variations or perhaps Debian Lenny and Sid, which is not my case, but thanks. The other ones I knew, but I was wondering how much I could free by erasing lots of ex-dependencies that I thought I had.


_____________________

Addendum about the mouse cursor issue: I've done what is suggested here, and it worked. Actually I had to create the "default" directory that didn't exist before. Now I got to go buy some elephant tranquilizers in order to try to figure how to get rid of KDM and stick only with console login, without making a major mess and losing the window managers in the process.
the dsc is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Implementing Detailed User-Level Auditing of UNIX & Linux Systems
Enhance regulatory compliance and troubleshooting through detailed auditing, logging and real-time monitoring of UNIX/Linux user activity.
subscribe
Linux from Scratch - Receive Your Complimentary eBook NOW!
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
subscribe
A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)
Getting Started with Ubuntu 10.04 (Lucid Lynx) is a comprehensive beginners guide for the Ubuntu operating system; it features comprehensive guides, How Tos and information on anything you need to know after first installing Ubuntu.
subscribe
The Incredible Guide to NEW Ubuntu (Karmic Koala)
There are a lot of people still stuck with Windows because it's the ‘easier alternative'. Linux is both cheaper and more versatile than Microsoft's operating system, but the learning curve has frightened off many people.
subscribe
The GNU/Linux Advanced Administration
The GNU/Linux systems have reached an important level of maturity, allowing to integrate them in almost any kind of work environment, from a desktop PC to the sever facilities of a big company.
subscribe
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe



All times are GMT. The time now is 07:49 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1