Remove the last n installed packages with yum admin February 6, 2011 May 15, 2021 No Comments on Remove the last n installed packages with yum For n equals 13 yum remove `tail -n 13 /var/log/yum.log | cut -d \ -f 5` See also cut manpage, tail manpage