Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Packager

An easy rails APT package repository.

Requirement

  ubuntu and ruby on rails
  sudo aptitude install reprepro

Configuration

  
auth_key: 8d26a8f6751a3caf7
base_dir: package

distributions:
  - origin: Companay, inc.
    label: Companay, inc.
    codename: natty
    architectures: amd64
    components: main
    description:  Companay Apt Repository
    signwith: false

  - origin: Companay, inc.
    label: Companay, inc.
    codename: trunk
    architectures: amd64
    components: main
    description:  Companay Apt Repository
    signwith: false

options:
  - verbose
  - --ask-passphrase
  

Installing Key

Create a key

  gpg --gen-key

  And follow the instructions.

Find a key

  gpg --list-key

Export a public key

  gpg -a --output project.gpg --export 6FFD7XXX

  Configure the path or put it one some public place.
  Then, configure the 'signwith'

Install the key from remote

  curl http://x.x.x.x/keys/pub.gpg | sudo apt-key add -
  echo "deb http://x.x.x.x/apt natty main" > /etc/apt/sources.list.d/mu.list
  sudo aptitude update
  sudo aptitude install your-package

API

  - Push
  POST http://x.x.x.x/package/upload
  
  - List
  GET http://x.x.x.x/package/list

How to upload from remote

curl -F package=@sample_1.0_amd64.deb -F code=stable -F key=yourkey http://x.x.x.x/package/upload

About

An rails app for serving APT package repository.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages