Kubuntu/Packaging: Difference between revisions

From KDE Community Wiki
Line 4: Line 4:


There are just a few steps that you need to take that will get your started with packaging software for Ubuntu.
There are just a few steps that you need to take that will get your started with packaging software for Ubuntu.
The [http://packaging.ubuntu.com/html/ Unbuntu Packaging Guide] will take you through them
The [http://packaging.ubuntu.com/html/ Ubuntu Packaging Guide] will take you through them


== Packaging Reference ==
== Packaging Reference ==

Revision as of 19:24, 9 November 2015

Getting Started

New to Kubuntu packaging ?

There are just a few steps that you need to take that will get your started with packaging software for Ubuntu. The Ubuntu Packaging Guide will take you through them

Packaging Reference

Below are some commands that are helpful for new and experienced packagers alike:

Git

git clone

- clone git repo

git checkout dir/file

- copy file from master to current branch

git checkout branch-name

- switch to branch-name

git diff

- see what changed in all the files

Bzr

bzr co lp:~kubuntu-packagers/+junk/kubuntu-automation

- grab kubuntu-automation to ignore errors

Apt

apt-get source packagename

- grab source for packagename

apt-get build-dep packagename

- grab depends of packagename

apt-cache policy packagename

- check installed version and available version

Debian command

dh_install --list-missing

- check missing files in debian/.install file

debuild -nc

- (no clean) builds again but without compiling everything over

debsign -r host@ipaddress:path/to/changes

- sign package from remote

dput -u ppa:username/ppa <source.changes>

- uploads to Launchpad while ignoring the local keyring search

pbuilder

pbuilder-dist wily create - make a wily pbuilder in that directory

pbuilder-dist vivid create - make a vivid pbuilder in that directory