0

I'm running the Ubuntu 20.04.02 (Focal) version and its production environment. Planning to apply the latest OS patches to these servers. Kindly suggest, that we roll back all upgrades and back to the earliest.

Example: Centos or Redhat, we have options like "yum history undo ". Do we have the same option in Ubuntu?

I don't want to downgrade each package one by one. Because since we are in production, any impact they ask us to roll back all recent changes. Kindly suggest.

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"

$ uname -r 5.4.0-124-generic

Ajay
  • 1,246
sai
  • 1
  • 2
  • Above answer doesn't meet my requirement. Kindly let me know the commands to rollback the recent installed patches. – sai Feb 28 '24 at 10:31
  • 3
    "Your requirement" is not possible using the default tools, but the thread I linked to gives several solutions. If this does not meet "your requirement", please write a new production-ready application to serve this requirement, and share with the community. Thanks. – Artur Meinild Feb 28 '24 at 10:50
  • 1
    Also, see my answer here. What you're looking for can be done with nala, but since I don't consider nala production ready, I wouldn't normally recommend it for your usecase (since you explicitly state it's a production environment). – Artur Meinild Feb 28 '24 at 10:54
  • 1
    The easiest options are via whatever backup strategy you put in places; with some file-systems (eg. btrfs) you'll have more options than others, but again those need to be setup before hand, in order to use them. If your details are correct (20.04.2) you've not applied security fixes since August 2021 so I hope your system is off-line (https://fridge.ubuntu.com/2021/08/27/ubuntu-20-04-3-lts-released/ shows the ISO release date of 20.04.3, but installed systems upgraded before this date) – guiverc Feb 28 '24 at 10:57
  • I use timeshift for this purpose. For my desktops, I take a snapshot once a day; for my servers, once an hour. – Organic Marble Feb 28 '24 at 19:59

0 Answers0