How can i remove all obsulete packages?

What’s the command to remove obsulete packages?
Those packages are not needed as dependencies of other packages.

During installing a package many packages/libraries are installed as dependencies.
After removing that package the packages/libraries are in partition.

Now what’s the way to remove those unnecessary libraries?

You are probably better leaving well alone.

Some orphaned packages may develop.
They appear in Yast with red text and no provider when viewing the version tab. These can be safely removed in most cases, but you need to know for sure.

I’m searching a zypper command to do that.
yast and removing individually is not the option.

Hello colao,

There was a thread about this topic a while back.
Here’s the link: http://forums.opensuse.org/english/get-help-here/install-boot-login/438055-how-remove-dependencies-packages.html

Be careful, if you find a program which can find packages that aren’t dependencies of other packages that doesn’t mean there not needed/wanted!

The only program I found who’s capable of finding packages that aren’t dependencies of other packages is rpmorphan.

Good luck!:wink:

Leave all as is. Linux does not take much space. The “obsolete” packages don’t hurt your install. Linux is not Windows.

colao wrote:
> I’m searching a zypper command to do that.
> yast and removing individually is not the option.

that command does not exist…

but, if it doesn’t already exist, you are welcome to add a feature
request to http://features.opensuse.org/

otherwise you must remove them manually…and, as noted in many other
posts on this subject it is very often better to leave them alone
because most don’t take so much space and unlike other operating
systems will now slow the system one bit…


DenverD (Linux Counter 282315)
CAVEAT: http://is.gd/bpoMD
via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
2.6.22.19-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio

On Fri, 02 Jul 2010 13:41:45 +0000, colao wrote for a reply:

> caf4926;2183805 Wrote:
>> You are probably better leaving well alone.
>>
>> Some orphaned packages may develop.
>> They appear in Yast with red text and no provider when viewing the
>> version tab. These can be safely removed in most cases, but you need to
>> know for sure.
> I’m searching a zypper command to do that. yast and removing
> individually is not the option.

There is an OpenSuse package that locates orphaned Rpmorphan.

You can use it to locate true orphan packages but make sure you double
check the found packages are orphaned. Test each uninstall by using the
dry-run option if using zypper. YaST2 Software Management should list
any other packages affected by before uninstalling the orphan.


Chillingout@opensuse.forum

On 2010-07-02 14:37 GMT DenverD wrote:

> colao wrote:
> > I’m searching a zypper command to do that.
> > yast and removing individually is not the option.
>
> that command does not exist…
>
> but, if it doesn’t already exist, you are welcome to add a feature
> request to http://features.opensuse.org/

The gtk yast package-manager in 11.3 does it >:-P


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” GM (Elessar))

Carlos E. R. wrote:
> The gtk yast package-manager in 11.3 does it >:-P

salute!!


DenverD (Linux Counter 282315)
CAVEAT: http://is.gd/bpoMD
via NNTP w/TBird 2.0.0.23 | KDE 3.5.7 | openSUSE 10.3
2.6.22.19-0.4-default SMP i686
AMD Athlon 1 GB RAM | GeForce FX 5500 | ASRock K8Upgrade-760GX |
CMedia 9761 AC’97 Audio