deb package tips that are hard to remember:

On http://ubuntuforums.org/showthread.php?t=486897, I found this useful tip:

# Generate a list of dev package names for packages that are installed
# (some of these may already be installed)
# (this would probably take a while to run)
dpkg -l | grep ^ii | awk ‘{print $2}’ | egrep -v ‘\-dev$’ | while read p; do devpkg=”$p-dev”; if apt-cache show $devpkg > /dev/null 2>&1; then echo $devpkg; fi; done > packages.txt;

# install the found dev packages
cat packages.txt | while read p; do sudo aptitude install $p; done

About pauljohn

Paul E. Johnson is a Professor of Political Science at the University of Kansas. He is an avid Linux User, an adequate system administrator and C programmer, and humility is one of his greatest strengths.
This entry was posted in Linux. Bookmark the permalink.