I can get the list of packages using command: dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n' | sort -k 2 -n | grep -v deinstall | awk '{printf "%.3f MB \t %s\n", $2/(1024), $1}'
and now I would like to know whether the particular package is critical for the system or not. If the package is no longer required then I will delete them. I want free up root space.