If I install something from a .deb, how to remove it?

Goh Lip g.lip at gmx.com
Wed Jun 2 18:03:20 UTC 2010


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




More information about the ubuntu-users mailing list