Kubuntu/Packaging: Difference between revisions

From KDE Community Wiki
No edit summary
No edit summary
Line 3: Line 3:
== Git ==
== Git ==


git clone
: git clone
- clone git repo
- clone git repo


git checkout dir/file
: git checkout dir/file
- copy file from master to current branch
- copy file from master to current branch


git checkout branch-name
: git checkout branch-name
- switch to branch-name
- switch to branch-name


git diff
: git diff
- see what changed in all the files
- see what changed in all the files


== Bzr ==
== Bzr ==


bzr co lp:~kubuntu-packagers/+junk/kubuntu-automation
: bzr co lp:~kubuntu-packagers/+junk/kubuntu-automation
- grab kubuntu-automation to ignore errors
- grab kubuntu-automation to ignore errors


== Apt ==
== Apt ==


apt-get source packagename
: apt-get source packagename
- grab source for packagename
- grab source for packagename


apt-get build-dep packagename
: apt-get build-dep packagename
- grab depends of packagename
- grab depends of packagename


apt-cache policy packagename
: apt-cache policy packagename
- check installed version and available version
- check installed version and available version


== Debian command ==
== Debian command ==


dh_install --list-missing
: dh_install --list-missing
- check missing files in debian/.install file
- check missing files in debian/.install file


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


debsign -r host@ipaddress:path/to/changes
: debsign -r host@ipaddress:path/to/changes
- sign package from remote
- sign package from remote
: dput -u ppa:username/ppa <source.changes>
- uploads to Launchpad
while ignoring the local keyring search

Revision as of 21:37, 11 August 2015

Here 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