K
K
Ki-Wi2015-03-29 20:21:01
linux
Ki-Wi, 2015-03-29 20:21:01

How to clean up orphaned packages in Ubuntu?

Hello!
At the moment I use Arch Linux and, in principle, I am satisfied. I recently used Ubuntu 14.10, I liked the Unity shell, and the distribution itself too. I wanted to put it on the laptop.
Now the crux of the problem: apt-get. How can I clean orphaned packages here? How to remove configs for unused packages? I was looking for answers on all sorts of communities, I met terrible things like:

# apt-get remove --auto-remove --purge часть_имени_пакета*

Is it possible to do this through aptitude or something else? And then I set up the packages, removed some, and some of the unnecessary dependencies are lying around in the system, and there is no way to remove them ...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
3
3vi1_0n3, 2015-03-29
@Ki-Wi

Well, in general, it's not such a terrible thing. You can do this:
Then see which package settings are left:
And you can then remove them using dpkg --purge or apt-get remove --purge
You can also use deborphan
Or even like this:

dpkg -l | grep ^rc | awk '{printf $2}' | xargs dpkg --purge

A
AVKor, 2015-03-30
@AVKor

Deborphan has already been written about.
See also debfoster.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question