VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Clean install for packaging question  (Read 2352 times)

zhymm

  • Packager
  • Member
  • ****
  • Posts: 20
Clean install for packaging question
« on: June 19, 2009, 06:56:35 am »

While perusing another thread (http://forum.vectorlinux.com/index.php?topic=9825.0) I noticed that one poster stated they do a new, clean install of VL 6.0 Light before creating a package.  Is this necessary?  I've justed started packaging and have created 3 packages using the same install of VL 6.0 Light.  Have I blundered??

Old Man Zhymm
Logged
If I were organized I'd be dangerous.

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3280
Re: Clean install for packaging question
« Reply #1 on: June 19, 2009, 07:02:17 am »

You do not need to make a new install every time you have to make a package.

Keeping a chroot environment inside your installation suffices most of the time. If you do end up bloating your chroot, you simply make it again... no harm to your existing running installation.

stretchedthin

  • Administrator
  • Vectorian
  • *****
  • Posts: 3780
    • Opensourcebistro.com
Re: Clean install for packaging question
« Reply #2 on: June 19, 2009, 07:14:36 am »

The risk that you are trying to avoid by using a fresh install is unnecessary dependencies.  There have been cases where people have packaged a simple application and openoffice gets loaded as a dependency, just because it was in the box when the package was made.

Double check your slack-required lists.  If they are not unnecessarily listing apps from items you previously built on the box, then you are most likely ok.

At somepoint checking this way will become impossible and you will have to do a fresh install.

You can also (as Daniel pointed out in a different thread) use a live version of vl-light 6.0 for your builds.  That way you get a fresh install everytime.
http://forum.vectorlinux.com/index.php?topic=9825.0
« Last Edit: June 19, 2009, 07:29:12 am by stretchedthin »
Logged
Vectorlinux screencasts and  tutorials can be found at....
http://www.opensourcebistro.com/blog1
http://www.youtube.com/user/vid4ken?feature=mhee

GrannyGeek

  • Packager
  • Vectorian
  • ****
  • Posts: 2567
Re: Clean install for packaging question
« Reply #3 on: June 19, 2009, 07:20:52 pm »

Keeping a chroot environment inside your installation suffices most of the time. If you do end up bloating your chroot, you simply make it again... no harm to your existing running installation.

Could you explain how to do this? I have no idea how to create a chroot environment. I have done that as an experiment, but I couldn't see how it would be "clean" after I had added things needed by a package I would create. When I ran chroot, it was simply mounting my VL6 Light partition. Whatever dependencies I added would be on the actual partition. This can't be what you mean.

I'm sure I'm not the only one who doesn't understand how chroot would keep my packaging partition clean.
--GrannyGeek
Logged
Registered Linux User #397786

Happily running VL 7 Gold on  a Sempron LE-1300 desktop (2.3 GHz), 4 G RAM,  GeForce 6150 SE onboard graphics and on an HP Pavilion dv7 i7, 6 gigs, Intel 2nd Generation Integrated Graphics Controller