‘autoremove’ cleans up any unnecessary packages that were installed as dependencies but are no longer needed.