Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. ·...

56

Transcript of Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. ·...

Page 1: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Debian SecretsPower tools for Power users

Wouter Verhelst

FOSDEM 2010

Wouter Verhelst Debian Secrets

Page 2: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

About this talk

Recycled from DebConf8 DebianDay

Idea: compare Debian-speci�c features against otherdistributions' features

Help!

Wouter Verhelst Debian Secrets

Page 3: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

About this talk

Recycled from DebConf8 DebianDay

Idea: compare Debian-speci�c features against otherdistributions' features

Help!

Wouter Verhelst Debian Secrets

Page 4: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

About this talk

Recycled from DebConf8 DebianDay

Idea: compare Debian-speci�c features against otherdistributions' features

Help!

Wouter Verhelst Debian Secrets

Page 5: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

update-alternativesdpkg-statoverride

update-alternatives

multiple packages providing a particular command

update-alternatives −−config x-terminal-emulator

more info: man update-alternatives

Wouter Verhelst Debian Secrets

Page 6: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

update-alternativesdpkg-statoverride

update-alternatives

multiple packages providing a particular command

update-alternatives −−config x-terminal-emulator

more info: man update-alternatives

Wouter Verhelst Debian Secrets

Page 7: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

update-alternativesdpkg-statoverride

update-alternatives

multiple packages providing a particular command

update-alternatives −−config x-terminal-emulator

more info: man update-alternatives

Wouter Verhelst Debian Secrets

Page 8: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

update-alternativesdpkg-statoverride

dpkg-statoverride

Limit access to wodim to a group of users

−rwxr−x−−− 1 root cdwriters 401624 May 25 20:12

/usr/bin/wodim

upgrades?

dpkg-statoverride −−update −−add root cdwriters

0750 /usr/bin/wodim

more info: man dpkg-statoverride

Wouter Verhelst Debian Secrets

Page 9: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

update-alternativesdpkg-statoverride

dpkg-statoverride

Limit access to wodim to a group of users

−rwxr−x−−− 1 root cdwriters 401624 May 25 20:12

/usr/bin/wodim

upgrades?

dpkg-statoverride −−update −−add root cdwriters

0750 /usr/bin/wodim

more info: man dpkg-statoverride

Wouter Verhelst Debian Secrets

Page 10: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

update-alternativesdpkg-statoverride

dpkg-statoverride

Limit access to wodim to a group of users

−rwxr−x−−− 1 root cdwriters 401624 May 25 20:12

/usr/bin/wodim

upgrades?

dpkg-statoverride −−update −−add root cdwriters

0750 /usr/bin/wodim

more info: man dpkg-statoverride

Wouter Verhelst Debian Secrets

Page 11: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

update-alternativesdpkg-statoverride

dpkg-statoverride

Limit access to wodim to a group of users

−rwxr−x−−− 1 root cdwriters 401624 May 25 20:12

/usr/bin/wodim

upgrades?

dpkg-statoverride −−update −−add root cdwriters

0750 /usr/bin/wodim

more info: man dpkg-statoverride

Wouter Verhelst Debian Secrets

Page 12: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

update-alternativesdpkg-statoverride

dpkg-statoverride

Limit access to wodim to a group of users

−rwxr−x−−− 1 root cdwriters 401624 May 25 20:12

/usr/bin/wodim

upgrades?

dpkg-statoverride −−update −−add root cdwriters

0750 /usr/bin/wodim

more info: man dpkg-statoverride

Wouter Verhelst Debian Secrets

Page 13: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: debtags

apt-cache search: works, but limited.

too di�cult search => brain goes banana

debtags: more �ne-grained searching

Goplay!

package: debtags, goplaymore info: http://debtags.alioth.debian.org/

Wouter Verhelst Debian Secrets

Page 14: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: debtags

apt-cache search: works, but limited.

too di�cult search => brain goes banana

debtags: more �ne-grained searching

Goplay!

package: debtags, goplaymore info: http://debtags.alioth.debian.org/

Wouter Verhelst Debian Secrets

Page 15: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: debtags

apt-cache search: works, but limited.

too di�cult search => brain goes banana

debtags: more �ne-grained searching

Goplay!

package: debtags, goplaymore info: http://debtags.alioth.debian.org/

Wouter Verhelst Debian Secrets

Page 16: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: debtags

apt-cache search: works, but limited.

too di�cult search => brain goes banana

debtags: more �ne-grained searching

Goplay!

package: debtags, goplaymore info: http://debtags.alioth.debian.org/

Wouter Verhelst Debian Secrets

Page 17: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: debtags

apt-cache search: works, but limited.

too di�cult search => brain goes banana

debtags: more �ne-grained searching

Goplay!

package: debtags, goplaymore info: http://debtags.alioth.debian.org/

Wouter Verhelst Debian Secrets

Page 18: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: grep-available

you know some things about the package

searching for packages by control �elds

grep-available -FMaintainer '[email protected]'

-sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage -sVersion

package: dctrl-toolsmore info: man grep-available

Wouter Verhelst Debian Secrets

Page 19: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: grep-available

you know some things about the package

searching for packages by control �elds

grep-available -FMaintainer '[email protected]'

-sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage -sVersion

package: dctrl-toolsmore info: man grep-available

Wouter Verhelst Debian Secrets

Page 20: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: grep-available

you know some things about the package

searching for packages by control �elds

grep-available -FMaintainer '[email protected]'

-sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage -sVersion

package: dctrl-toolsmore info: man grep-available

Wouter Verhelst Debian Secrets

Page 21: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: grep-available

you know some things about the package

searching for packages by control �elds

grep-available -FMaintainer '[email protected]'

-sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage -sVersion

package: dctrl-toolsmore info: man grep-available

Wouter Verhelst Debian Secrets

Page 22: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: grep-available

you know some things about the package

searching for packages by control �elds

grep-available -FMaintainer '[email protected]'

-sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage -sVersion

package: dctrl-toolsmore info: man grep-available

Wouter Verhelst Debian Secrets

Page 23: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

debtagsgrep-available

Searching for packages: grep-available

you know some things about the package

searching for packages by control �elds

grep-available -FMaintainer '[email protected]'

-sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage

grep-available -FSource 'linux-2.6' -a -FPackage

'image' -sPackage -sVersion

package: dctrl-toolsmore info: man grep-available

Wouter Verhelst Debian Secrets

Page 24: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-divert: move �les aside

Install nVidia binary module from nvidia.com

nVidia wants to install /usr/lib/libGL.so

apt-get upgrade. . .

instead: dpkg-divert −−divert

/usr/lib/libGL.so.Debian /usr/lib/libGL.so

Then, and only then, install nVidia binary module and software

Warning: do NOT use for con�guration �lesmore info: man dpkg-divert

Wouter Verhelst Debian Secrets

Page 25: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-divert: move �les aside

Install nVidia binary module from nvidia.com

nVidia wants to install /usr/lib/libGL.so

apt-get upgrade. . .

instead: dpkg-divert −−divert

/usr/lib/libGL.so.Debian /usr/lib/libGL.so

Then, and only then, install nVidia binary module and software

Warning: do NOT use for con�guration �lesmore info: man dpkg-divert

Wouter Verhelst Debian Secrets

Page 26: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-divert: move �les aside

Install nVidia binary module from nvidia.com

nVidia wants to install /usr/lib/libGL.so

apt-get upgrade. . .

instead: dpkg-divert −−divert

/usr/lib/libGL.so.Debian /usr/lib/libGL.so

Then, and only then, install nVidia binary module and software

Warning: do NOT use for con�guration �lesmore info: man dpkg-divert

Wouter Verhelst Debian Secrets

Page 27: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-divert: move �les aside

Install nVidia binary module from nvidia.com

nVidia wants to install /usr/lib/libGL.so

apt-get upgrade. . .

instead: dpkg-divert −−divert

/usr/lib/libGL.so.Debian /usr/lib/libGL.so

Then, and only then, install nVidia binary module and software

Warning: do NOT use for con�guration �lesmore info: man dpkg-divert

Wouter Verhelst Debian Secrets

Page 28: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-divert: move �les aside

Install nVidia binary module from nvidia.com

nVidia wants to install /usr/lib/libGL.so

apt-get upgrade. . .

instead: dpkg-divert −−divert

/usr/lib/libGL.so.Debian /usr/lib/libGL.so

Then, and only then, install nVidia binary module and software

Warning: do NOT use for con�guration �lesmore info: man dpkg-divert

Wouter Verhelst Debian Secrets

Page 29: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-divert: move �les aside

Install nVidia binary module from nvidia.com

nVidia wants to install /usr/lib/libGL.so

apt-get upgrade. . .

instead: dpkg-divert −−divert

/usr/lib/libGL.so.Debian /usr/lib/libGL.so

Then, and only then, install nVidia binary module and software

Warning: do NOT use for con�guration �les

more info: man dpkg-divert

Wouter Verhelst Debian Secrets

Page 30: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-divert: move �les aside

Install nVidia binary module from nvidia.com

nVidia wants to install /usr/lib/libGL.so

apt-get upgrade. . .

instead: dpkg-divert −−divert

/usr/lib/libGL.so.Debian /usr/lib/libGL.so

Then, and only then, install nVidia binary module and software

Warning: do NOT use for con�guration �lesmore info: man dpkg-divert

Wouter Verhelst Debian Secrets

Page 31: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-repack: Re-create a package �le from an installedpackage

Install great-game-nonfree from game-writer-company

game-writer-company goes bankrupt, and your CD-ROM islost

Buy new computer, want to play great-game-nonfree there too

Use dpkg-repack to create new package to install on newcomputer

package: dpkg-repackmore info: man dpkg-repack

Wouter Verhelst Debian Secrets

Page 32: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-repack: Re-create a package �le from an installedpackage

Install great-game-nonfree from game-writer-company

game-writer-company goes bankrupt, and your CD-ROM islost

Buy new computer, want to play great-game-nonfree there too

Use dpkg-repack to create new package to install on newcomputer

package: dpkg-repackmore info: man dpkg-repack

Wouter Verhelst Debian Secrets

Page 33: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-repack: Re-create a package �le from an installedpackage

Install great-game-nonfree from game-writer-company

game-writer-company goes bankrupt, and your CD-ROM islost

Buy new computer, want to play great-game-nonfree there too

Use dpkg-repack to create new package to install on newcomputer

package: dpkg-repackmore info: man dpkg-repack

Wouter Verhelst Debian Secrets

Page 34: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-repack: Re-create a package �le from an installedpackage

Install great-game-nonfree from game-writer-company

game-writer-company goes bankrupt, and your CD-ROM islost

Buy new computer, want to play great-game-nonfree there too

Use dpkg-repack to create new package to install on newcomputer

package: dpkg-repackmore info: man dpkg-repack

Wouter Verhelst Debian Secrets

Page 35: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

dpkg-repack: Re-create a package �le from an installedpackage

Install great-game-nonfree from game-writer-company

game-writer-company goes bankrupt, and your CD-ROM islost

Buy new computer, want to play great-game-nonfree there too

Use dpkg-repack to create new package to install on newcomputer

package: dpkg-repackmore info: man dpkg-repack

Wouter Verhelst Debian Secrets

Page 36: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

Equivs: NIH

Install self-written not-invented-here MTA

apt-get install cron pulls in exim4

install bogus mail-transport-agent package to satisfy depends

package: equivsmore info: man equivs-build and man equivs-control, also see/usr/share/doc/equivs

Wouter Verhelst Debian Secrets

Page 37: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

Equivs: NIH

Install self-written not-invented-here MTA

apt-get install cron pulls in exim4

install bogus mail-transport-agent package to satisfy depends

package: equivsmore info: man equivs-build and man equivs-control, also see/usr/share/doc/equivs

Wouter Verhelst Debian Secrets

Page 38: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

Equivs: NIH

Install self-written not-invented-here MTA

apt-get install cron pulls in exim4

install bogus mail-transport-agent package to satisfy depends

package: equivsmore info: man equivs-build and man equivs-control, also see/usr/share/doc/equivs

Wouter Verhelst Debian Secrets

Page 39: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

dpkg-divertdpkg-repackequivs

Equivs: NIH

Install self-written not-invented-here MTA

apt-get install cron pulls in exim4

install bogus mail-transport-agent package to satisfy depends

package: equivsmore info: man equivs-build and man equivs-control, also see/usr/share/doc/equivs

Wouter Verhelst Debian Secrets

Page 40: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

apt-listbugs/apt-listchanges: reviewing before installing

install very-buggy-package from unstable

apt-listbugs �nds and lists release-critical bugs

User can choose to decline downloading/installing

apt-get or aptitude downloads packages

apt-listchanges lists changelog items and/or NEWS.Debianitems

User can choose to decline installing

packages: apt-listbugs, apt-listchanges

Wouter Verhelst Debian Secrets

Page 41: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

apt-listbugs/apt-listchanges: reviewing before installing

install very-buggy-package from unstable

apt-listbugs �nds and lists release-critical bugs

User can choose to decline downloading/installing

apt-get or aptitude downloads packages

apt-listchanges lists changelog items and/or NEWS.Debianitems

User can choose to decline installing

packages: apt-listbugs, apt-listchanges

Wouter Verhelst Debian Secrets

Page 42: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

apt-listbugs/apt-listchanges: reviewing before installing

install very-buggy-package from unstable

apt-listbugs �nds and lists release-critical bugs

User can choose to decline downloading/installing

apt-get or aptitude downloads packages

apt-listchanges lists changelog items and/or NEWS.Debianitems

User can choose to decline installing

packages: apt-listbugs, apt-listchanges

Wouter Verhelst Debian Secrets

Page 43: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

apt-listbugs/apt-listchanges: reviewing before installing

install very-buggy-package from unstable

apt-listbugs �nds and lists release-critical bugs

User can choose to decline downloading/installing

apt-get or aptitude downloads packages

apt-listchanges lists changelog items and/or NEWS.Debianitems

User can choose to decline installing

packages: apt-listbugs, apt-listchanges

Wouter Verhelst Debian Secrets

Page 44: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

apt-listbugs/apt-listchanges: reviewing before installing

install very-buggy-package from unstable

apt-listbugs �nds and lists release-critical bugs

User can choose to decline downloading/installing

apt-get or aptitude downloads packages

apt-listchanges lists changelog items and/or NEWS.Debianitems

User can choose to decline installing

packages: apt-listbugs, apt-listchanges

Wouter Verhelst Debian Secrets

Page 45: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

apt-listbugs/apt-listchanges: reviewing before installing

install very-buggy-package from unstable

apt-listbugs �nds and lists release-critical bugs

User can choose to decline downloading/installing

apt-get or aptitude downloads packages

apt-listchanges lists changelog items and/or NEWS.Debianitems

User can choose to decline installing

packages: apt-listbugs, apt-listchanges

Wouter Verhelst Debian Secrets

Page 46: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

apt-listbugs/apt-listchanges: reviewing before installing

install very-buggy-package from unstable

apt-listbugs �nds and lists release-critical bugs

User can choose to decline downloading/installing

apt-get or aptitude downloads packages

apt-listchanges lists changelog items and/or NEWS.Debianitems

User can choose to decline installing

packages: apt-listbugs, apt-listchanges

Wouter Verhelst Debian Secrets

Page 47: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

debfoster, deborphan, aptitude: �nding unused packages

apt-get install warzone2100

Pulls in several libraries

You don't like the game; apt-get −−purge remove

warzone2100

Libraries?

debfoster/aptitude: keep track of what was installed manuallyor as a dependency

deborphan: �nd unused libraries � needs to guess, may bewrong.

packages: debfoster, deborphan

Wouter Verhelst Debian Secrets

Page 48: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

debfoster, deborphan, aptitude: �nding unused packages

apt-get install warzone2100

Pulls in several libraries

You don't like the game; apt-get −−purge remove

warzone2100

Libraries?

debfoster/aptitude: keep track of what was installed manuallyor as a dependency

deborphan: �nd unused libraries � needs to guess, may bewrong.

packages: debfoster, deborphan

Wouter Verhelst Debian Secrets

Page 49: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

debfoster, deborphan, aptitude: �nding unused packages

apt-get install warzone2100

Pulls in several libraries

You don't like the game; apt-get −−purge remove

warzone2100

Libraries?

debfoster/aptitude: keep track of what was installed manuallyor as a dependency

deborphan: �nd unused libraries � needs to guess, may bewrong.

packages: debfoster, deborphan

Wouter Verhelst Debian Secrets

Page 50: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

debfoster, deborphan, aptitude: �nding unused packages

apt-get install warzone2100

Pulls in several libraries

You don't like the game; apt-get −−purge remove

warzone2100

Libraries?

debfoster/aptitude: keep track of what was installed manuallyor as a dependency

deborphan: �nd unused libraries � needs to guess, may bewrong.

packages: debfoster, deborphan

Wouter Verhelst Debian Secrets

Page 51: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

debfoster, deborphan, aptitude: �nding unused packages

apt-get install warzone2100

Pulls in several libraries

You don't like the game; apt-get −−purge remove

warzone2100

Libraries?

debfoster/aptitude: keep track of what was installed manuallyor as a dependency

deborphan: �nd unused libraries � needs to guess, may bewrong.

packages: debfoster, deborphan

Wouter Verhelst Debian Secrets

Page 52: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

debfoster, deborphan, aptitude: �nding unused packages

apt-get install warzone2100

Pulls in several libraries

You don't like the game; apt-get −−purge remove

warzone2100

Libraries?

debfoster/aptitude: keep track of what was installed manuallyor as a dependency

deborphan: �nd unused libraries � needs to guess, may bewrong.

packages: debfoster, deborphan

Wouter Verhelst Debian Secrets

Page 53: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Finding problems before installingKeeping your system tidy

debfoster, deborphan, aptitude: �nding unused packages

apt-get install warzone2100

Pulls in several libraries

You don't like the game; apt-get −−purge remove

warzone2100

Libraries?

debfoster/aptitude: keep track of what was installed manuallyor as a dependency

deborphan: �nd unused libraries � needs to guess, may bewrong.

packages: debfoster, deborphan

Wouter Verhelst Debian Secrets

Page 54: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Changing the Debian menu

Standard menu in most window managers (not all desktopenvironments)

Modify through /etc/menu, /.menu

package: menumore info: /usr/share/doc/menu/html, chapter 3 (syntaxis),chapter 6 (how to override)

Wouter Verhelst Debian Secrets

Page 55: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Changing the Debian menu

Standard menu in most window managers (not all desktopenvironments)

Modify through /etc/menu, /.menu

package: menumore info: /usr/share/doc/menu/html, chapter 3 (syntaxis),chapter 6 (how to override)

Wouter Verhelst Debian Secrets

Page 56: Debian Secrets - Power tools for Power userswouter/slides/debian-secrets... · 2010. 2. 10. · Debian menu Debian Secrets Power tools for Power users Wouter Verhelst FOSDEM 2010

About this talkChanging system behaviour

SearchingFooling the package system

Anticipating and correcting problemsDebian menu

Changing the Debian menu

Standard menu in most window managers (not all desktopenvironments)

Modify through /etc/menu, /.menu

package: menumore info: /usr/share/doc/menu/html, chapter 3 (syntaxis),chapter 6 (how to override)

Wouter Verhelst Debian Secrets