If I install something from a .deb, how to remove it?
Pete Vander Giessen
petevg at gmail.com
Wed Jun 2 18:49:54 UTC 2010
dpkg has a "get-selections" option that will list installed software:
To list everything installed in your system:
$ dpkg --get-selections
To stop from going insane on account of the length of the list:
$ dpkg --get-selections | grep -i <sometext>
where <sometext> is a reasonable guess as to what the package name
might be. For example:
$ dpkg --get-selections | grep -i virtualbox
Tells me that that I have the packaged "virtualbox-3.2" installed.
$ sudo dpkg --remove virtualbox-3.2
would get rid of it.
Regards,
~PeteVG
" ... the original aphorism being 'In comparison with the ancients, we
stand like dwarfs on the shoulders of giants.' The image was a
commonplace by the time Newton used it, his one contribution being to
erase any sense that he himself might be a dwarf."
~ Lewis Hyde
On Wed, Jun 2, 2010 at 11:03 AM, Goh Lip <g.lip at gmx.com> wrote:
> On 06/03/2010 01:54 AM, Goh Lip wrote:
>> On 06/03/2010 01:41 AM, arshad wrote:
>>> On Thu, 2010-06-03 at 01:31 +0800, Goh Lip wrote:
>>>> On 06/03/2010 01:20 AM, arshad wrote:
>>>>> If I installed something from software center, i can go back there,
>>>>> search for it and can remove it.
>>>>>
>>>>> but if I install something from a .deb package, how can I remove it?
>>>>>
>>>>> eg. I have installed Oracle VM box from a .deb I downloaded.
>>
>>
>>>>>
>>>>>
>>>> sudo dpkg -r packagename
>>>>
>>>> Regards - Goh Lip
>>>>
>>>
>>>
>>> Thanks Goh Lip,
>>> how can i get the correct package name?
>>> like oracle-vm-box or just oracle vm-box or oracle vm box etc....
>>>
>>> thanks.
>>
>> I don't use that, but to see which is the correct package name, you
>> could try the command 'apt-cache policy' and see which gives some
>> output, eg....
>> apt-cache policy oracle-vm-box
>> apt-cache policy oracle
>> apt-cache policy vm-box
>>
>> Package names are one word names.
>>
>> By the way, similarly you can also remove repository packages by
>> "sudo apt-get remove packagename" too.
>>
>> Regards - Goh Lip
>>
>>
>
> Try "virtualbox"? So...
> sudo dpkg -r virtualbox
>
> Regards - Goh Lip
>
>
> --
> Life is a sexually transmitted disease with a 100% mortality rate
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
More information about the ubuntu-users
mailing list