Forums Search Login Register
New Posts Todays Posts Find Users Posts Unanswered Threads Help Mark Forums as Read

Thread Options  Subscribe to this thread Subscribed Users  Add Reply 
Posts: 1,339
Hello, everyone

Due to some reason, my do-release-upgrade process was interrupted and I was not able to execute the `[COLOR=var(--black-800)]Remove obsolete packages? [/COLOR]` step.

So does anyone know the script of that step? Just want to remove the obsolete packages after upgrading. Thanks


PS: So far I had done this,

sudo -i

apt-get update
apt-get autoremove
apt-get clean
UNUSCONF=$(dpkg -l|grep "^rc" | awk '{print $2}')
apt-get remove --purge $UNUSCONF

NEWKERNEL=$(uname -r|sed 's/-*[a-z]//g'|sed 's/-386//g')



UNUSKERNELS=$(dpkg -l | awk '{print $2}' | grep -E $ADDKERNEL | grep -vE $METAKERNEL | grep -v $NEWKERNEL)

apt-get remove --purge $UNUSKERNELS

06-10-2021, 04:26 AM
Subscribe to this thread Subscribed Users  Add Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  mount luks encrypted loop device partition in a script itsmeamandaneode 0 2 Yesterday 09:05 AM
Last Post: itsmeamandaneode
  [ubuntu] My video is deconfigured when my system is updated - ubuntu 18 zportermarquerrr 0 6 06-20-2021 04:15 PM
Last Post: zportermarquerrr
  [ubuntu] Text to speech voices for Ubuntu 20.04.2 LTS tsergiohaynesz 0 9 06-20-2021 10:14 AM
Last Post: tsergiohaynesz
  [ubuntu] Text to speech voices for Ubuntu 12.04 ebrainpecks 0 3 06-20-2021 04:36 AM
Last Post: ebrainpecks
  [ubuntu] Desktop won't sleep after upgrade to 21.04 csharolynvargasww 0 3 06-19-2021 11:01 AM
Last Post: csharolynvargasww
  [ubuntu] Change Settings:Applications:Ubuntu Software:Notifications from command line Trogdor 0 12 06-17-2021 10:27 PM
Last Post: Trogdor
  [ubuntu] Is the Ubuntu touchscreen driver compatible with all computer models? lkeridunuuue 0 8 06-17-2021 04:51 AM
Last Post: lkeridunuuue
  [ubuntu] Wired network only availabe though bridge - R710 KVM server on Ubuntu 18.04 kyleStyle 0 10 06-15-2021 05:50 PM
Last Post: kyleStyle
  [ubuntu] find history of changes done in ubuntu system files candremcmillanz 0 6 06-14-2021 12:14 PM
Last Post: candremcmillanz
  [ubuntu] Is there an Ubuntu equivalent of Softpedia Advanced Identity Protector MargaretS2006 0 8 06-13-2021 01:47 PM
Last Post: MargaretS2006

Forum Jump:

User(s) browsing this thread: 1 Guest(s)

Contact Us Privacy Policy Top RSS
Forum Software By: MyBB, © 2002-2021