1

I have installed two packages (xrdp and ubuntu-desktop) on my server release and it cause isntallation of numerous packages by dependencies, including even sphinx speech recognition. If I would know these two packages are so heavy, I would not install them.

What can I do now?

How to revert all installations done last hour? Is it possible?

Dims
  • 1,803
  • Not sure if this may help, but /var/log/apt has some history files that show recent installs. I'm not sure how often it's updated, but at least on my machine it shows updates and installs i did for today – Sergiy Kolodyazhnyy Oct 04 '14 at 04:08

2 Answers2

0

Assuming neither xrdp nor ubuntu-desktop was actually installed before, you can remove them and all the packages that were automatically installed to satisfy their dependencies:

sudo apt-get purge xrdp ubuntu-desktop
sudo apt-get --purge autoremove

Or in one step:

sudo apt-get --purge autoremove xrdp ubuntu-desktop

Here's an example of what that looks like.

This does not select by date and time, but I suspect that's not really necessary (or helpful) toward solving this particular problem. The packages you don't want were installed because they were needed for xrdp and ubuntu-desktop. (Probably mostly for ubuntu-desktop, which is a metapackage whose purpose is to cause lots of stuff to be installed.)

So removing them and autoremoving their automatically installed dependencies is probably the most correct and elegant solution.

(Just running sudo apt-get purge on the two manually installed packages would not automatically cause the dependencies to be removed. The only difference between the remove and purge actions is that purge deletes systemwide configuration files of the packages it removes.)

Eliah Kagan
  • 117,780
-1

You can use

sudo apt-get purge xrdp ubuntu-desktop

Which will remove those packages and all the dependencies that they installed, though be careful with purging ubuntu-desktop, not sure why you would want to do that...

Termhn
  • 401
  • 2
  • 7