Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
Hi,
I'd like to know a good way to rollback last installed packages in last days/hours.. so I dont have to reboot system to a snapshot everytime I decide to install just a few packages to test.
I found this way to remove all packages installed within last 3 days, but I suspect there're more interesting and properly ways to get this done.:
I don't clearly understand why you correlate package choice to be removed with "time", I miss the point.
Personally, I would prefer to have a clear visibility of what is going to be removed, and just let apt ask me for [Y/n] confirmation.
L_V wrote:I don't clearly understand why you correlate package choice to be removed with "time", I miss the point.
Personally, I would prefer to have a clear visibility of what is going to be removed, and just let apt ask me for [Y/n] confirmation.
for I in `tac /var/log/apt/history.log | grep Install | cut -d: -f2` ; do sudo apt remove $I ; done
... and just stop the process with "ctrl+c".
Thanks a lot L_V
I liked a lot your method, that was more or less what I was looking for.. I didnt know about tac until now (thanks ), I think thats the key for this case. The only but I see, we cant uninstall dpkg's installed packages at the same time. I usually mix several common methods to install things: dpkg, apt's log (apt /aptitude/synaptic).
Last edited by bester69 on 2019-05-19 14:22, edited 6 times in total.
bester69 wrote:STOP 2030 globalists demons, keep the fight for humanity freedom against NWO...
You should be able to get dpkg info from root's history and apt's log for everything else.
But - perhaps the thing to do would be to do the work before installing
I prefer to compile the stuff myself but snap/flatpak may also be an option. Worst case you can disassemble any .deb with a gooey archive manager, find out what its dependencies are, determine whether you can resolve them and if you can, install
we see things not as they are, but as we are.
-- anais nin
wizard10000 wrote:You should be able to get dpkg info from root's history and apt's log for everything else.
But - perhaps the thing to do would be to do the work before installing
I prefer to compile the stuff myself but snap/flatpak may also be an option. Worst case you can disassemble any .deb with a gooey archive manager, find out what its dependencies are, determine whether you can resolve them and if you can, install
thanks Wizard
I made this script and to some more control, like installed dates and removing simulation.: