Giter Club home page Giter Club logo

debify's Introduction

debify

Pack software into .deb with one command. Plus other commands to make working with debian packages easier.

    $ debify.py examples
    debify usage examples:
  • Pack files into debian package by path: find /usr/local/yoyodyne | debify.py yoyodyne_0.1 'custom install of yoyodyne'

  • Install first and then pack

    With a few commands, software installed from source can be packaged so you can track and de-install it later:

      # the usual tgz install flow
      wget ..../yoyodyne-0.1.tgz
      tar xzf yoyodyne-0.1.tgz
      cd yoyodyne-0.1
      ./configure
    
      # Take a pre-install snapshot of /usr/local. 
      # You have to know that this package only installs to /usr/local. Expand the scope as necessary.
      find /usr/local | sort > x.pre-yoyodyne-files
    
      # go ahead and install
      sudo make install
    
      # take a post-install snapshot
      find /usr/local | sort > x.post-yoyodyne-files
    
      # take the diff
      comm -23 x.post-yoyodyne-files x.pre-yoyodyne-files > x.yoyodyne-files
    
      # inspect
      less x.yoyodyne-files
    
      # package what's been installed
      cat x.yoyodyne-files | debify.py opt-yoyodyne_0.1 'custom install of yoyodyne'
    
      # Install the package so that the dpkg metadata is registered.
      sudo dpkg -i opt-yoyodyne_0.1.deb
    
  • Show files that have been modified

      debify.py show_modified yoyodyne
      yoyodyne=0.1	/etc/yoyodyne.conf
    
  • Show diff of modified files

      debify.py show_diff yoyodyne
      /etc/yoyodyne.conf
      < listen=127.0.0.1
      ---
      > listen=0.0.0.0
    
  • Show installed package,version

      debify.py show_installed_pkgs yoyo\*
      yoyodyne=0.1
      yoyodyne-dev=0.1
      yoyodyne-doc=0.1
    

    The output can be passed to apt-get install to duplicate the same configuration for pkg_version in ssh stage debify.py show_installed_pkgs yoyo\*; do sudo apt-get install $pkg_version; done

TODO

  • remove dependency on baker so that it could be a self-contained script
  • pypi --> deb
  • diff deb files

debify's People

Contributors

repat avatar tengu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.