apt list security updates code example Example: apt list only security updates sudo apt list --upgradable |grep "/$(lsb_release -cs)-security"