сборка deb-src

Вспомогательные программы
apt-get install debhelper build-essential

Скачать исходники из репозитория
apt-get source package

Распаковать
dpkg-source -x fluxbox_0.9.15.1+1.0rc2-1.dsc

Установить зависимые пакеты для сборки
apt-get build-dep fluxbox

cd fluxbox_0.9.15.1

Проверить зависимости
dpkg-checkbuilddeps

dch -i
fakeroot ./debian/rules binary

http://www.debian.org/doc/manuals/maint-guide/build.ru.html

Debian packages downgrade

Set the "/etc/apt/preferences" file as the following.

Package: *
Pin: release a=stable
Pin-Priority: 1010

Run "aptitude full-upgrade" to force downgrading of packages across the system.

Remove this special "/etc/apt/preferences" file after this emergency downgrading.

Как найти "лишние" файлы в системе:

Создаем список файлов из пакетов:

dpkg -l | grep -E '^.(i|c)' | awk '{print $2}' | xargs -n1 dpkg -L > files.dpkg

Создаем список всех файлов:

find / -xdev -type f > files.all

Выводим лишние:

grep -x -F -v -f files.dpkg files.all | less

List installed deb packages by size

dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n

User tags

sg ddos cpu search tiger iops groups LVM equalizer MegaRAID usb perl jackd sysfs RT tar pulseaudio glxinfo debian Swift limit_conn vim bscan mdadm OpenSSL idmapd language puppet ip route pvmove squeeze pacemaker gtk keyboard deb ansible htop hdparm SpamAssassin vlan flash dhclient raid cgroups docker-compose mariadb cpanm dovecot NFS dhcp AMD dpkg Adaptec qemu fido7 ipmi arp nfs4 top bash cache lenny sysresccd scsi ssh PXE encrypt tin conntrack drupal regex git raid5 radeon munin apache bind su nginx leap second profiling opreport freedos boot security erase elliptics sftp sysrq sublime lxc cfq X forwarding APU asoundrc core dump php pam PTR mount Areca iSCSI iowait qcow2 gdb 3Ware iostat vtysh graylog2 quagga virt-install cluster performance ubuntu bonding noop exim ulimit alsa hotplug youtube backup SuperMicro fail2ban ardour bug shorewall SYN kernel lts oprofile zRam routing sysctl.conf storage exim4 gpg tool LSI bacula lubuntu StorMan proxy CPAN slab wordpress DRBD perlbrew corosync soa openvpn netfilter tftp xfs mkfs firefox vrrp source java xargs OpenStack etch newgrp HTTPS alien opcontrol ha SSD vrrpd KVM rtl8723be Salt CentOS numa wget find mysql cpu usage MODx lstat fio taskset apt rtsp rpm replication tzdata rkhunter gre nvidia build shellshock tun .htaccess /etc/network/interfaces virtualbox ipmitool xen iptables chromium initrd rsync swap virsh grub video arch backtrace debootstrap dns sysctl bridge ps dstat xhost parallel in-addr.arpa glusterfs arping docker centos 7 chroot HDFS