Installing multiple debian packages
Tuesday, May 8th, 2007Subject seems to be a rather simple task. As for me, installing multiple packages, which i find through apt-cache search was always painful - i input package names manually (shame on me
).
But today my laziness took over and i figured out the solution:
apt-get install `apt-cache search | grep <package_name_regexp>| grep -v <unneeded_packages_regexp> | sed -e 's/ -.*//' | sed -e ':lbl N; s/\n/ /; t lbl;'`
Hope it’s something useful for all of you debian/ubuntu fans out there ![]()


