Skip to main content

Posts

Showing posts with the label apt

HowTo recompile Debian packages

This article will show how you can  rebuild any debian package . You might need to rebuild a package for various reasons: add/remove some compilation options, make some changes to the sources, or compile a newer version from testing/sid into stable, etc. Regardless of your reason, this can be done very easy using debian tools. First you will need to have some basic debian building tools installed: apt-get install devscripts build-essential 1. Get the source package Debian repositories contain the  sources  for all existing  debian packages . In order to get a source package you will need to have in your  /etc/apt/sources.list  a  deb-src  line (this is exactly as a regular  deb  repository line, but it is for sources). This will look like: deb-src http://ftp.us.debian.org/debian/ etch main non-free contrib change it accordingly to your needs (a close mirror, testing or sid instead of etch, and so on). Once you have your sources file updated refresh your packages lists: apt-get update N...