Metapackages in Ubuntu for new system provisioning



In ubuntu/debian linux software installs, there are such things as “metapackages” which is a package that just describes what OTHER packages it “needs”. For instance in ubuntu, the kubuntu-desktop package is just such a package – when choosing it, it installs everything necessary for the kubuntu desktop/customizations to install. So, I was hit with an idea while I was apt-getting 30-40 odd packages…. everytime I “provision” a new ubuntu system I have a list of packages that I want to make sure are installed, why don’t I just create a single metapackage and be done with it to make life simpler…. But how could I do this?


This article has the essentials…. make an empty directory structure….

mkdir -p package/DEBIAN

and create a control file….. *(single text file, named control in the DEBIAN folder)

example from above site…

Package: iandefors-metapackage
Essential: no
Priority: extra
Section: metapackages
Maintainer: Ian Defor
Architecture: i386
Version: 1
Depends: abiword, gnumeric, xchat-gnome
Description: Iandefor’s Metapackage
Iandefor’s preferred packages

Customized of course to your preference….

And then dpkg-deb -b package name.deb

It might be worthwhile to break your metapackages up into a couple of “thought” groups… internet / multimedia /etc… but if you’ve got several systems and want to make sure you quickly and easily install the same software on each this could be a good shortcut for you.

Related Posts

Blog Traffic Exchange Related Posts
  • Samba (Windows) domain controller using ubuntu linux There's a good how-to at (where else) howtoforge.com on the topic of setting up ubuntu Linux (with samba) as a Primary domain controller for your network of windows machines. This uses tdb instead of LDAP and is suitable for networks with up to 250 users. The advantage here is that......
  • Linux software raid notes Here are a few other notes on linux software raid. I created a directory called raidinfo to keep information in to make it easy to maintain the raid array. First... from the software raid howto, I've done the following.... sfdisk -d /dev/hda > /raidinfo/partitions.hda sfdisk -d /dev/hde > /raidinfo/partitions.hde So..........
  • More linux software raid fun OK, I know there are probably quite a few looking at this thinking.... "Hello where has he been?" when I'm talking about playing around with software raid under ubuntu linux, but.... in spite of all I've done supporting desktop systems and even small business servers I've never had an opportunity......
Blog Traffic Exchange Related Websites
  • Luxury Ski Holidays Taking your family on a winter vacation can be a difficult task if you are unsure about where to go. Many people decide to take their family someplace warm and tropical during the colder months of the year, but others choose luxury ski holidays for the ultimate in fun and......
  • The Easiest Way to Create Professional Websites If you want to create your own Internet Web Site, there are many ways you can do this. Obviously you can outsource the work and pay for someone to do it for you, or you can build your own site using software such as Dreamweaver or Microsoft's Front Page (Expression......
  • What to Look for in Your Blogging Software There are so many choices for blogging software on the market, that it can be very difficult to choose the right one. Every software choice has its advantages and disadvantages which means that you will have to make some decisions on your needs. This will help you to determine which......
PDF24    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site