0

I accidentally installed this app in Ubuntu. Now I want to uninstall it, but I forgot its name. How can I do it?

enter image description here

karel
  • 122,292
  • 133
  • 301
  • 332
Ali Raza
  • 101

2 Answers2

4

You may be able to jog your memory with one or both commands below

ls -artl /var/cache/apt/archives

this will provide a list of the packages with the most recent ones listed near the end.

If an alphabetical approach appeals to you, then try

sudo apt list

When you find the package, then try

sudo apt remove pkgname

Another approach is to try finding the package name in your command history if you installed it with the terminal program

history | grep apt 

will return all the commands you entered to manage packages.

If you used the dpkg command instead, then

history | grep dpkg
mondotofu
  • 817
  • 6
  • 12
0

One thing you could do is to list all the recent installs with the command

grep " install " /var/log/dpkg.log

and see if you could find the name of the package you installed.

SomannaK
  • 111