Oops inc.

Icon

Random stuff

apt-cache depends and rdepends


$ apt-cache depends git-svn
git-svn
Depends: git-core
Depends: git-core
|Depends: libsvn-perl
Depends:
libsvn-perl
Depends: libwww-perl
Depends: libterm-readkey-perl
Suggests: git-doc
Suggests: subversion
Replaces:


$ apt-cache rdepends git-svn
git-svn
Reverse Depends:
moap
git-doc
git-core

Advertisements

Filed under: Uncategorized, , , ,

get soname from library

Nice trick found in debian packaging tools:

$ objdump -p /lib/libc.so.6 | sed -n -e's/^[[:space:]]*SONAME[[:space:]]*//p' | sed -e's/\([0-9]\)\.so\./\1-/; s/\.so\.//'
libc6

Filed under: Uncategorized,

view binary files

Lets assume you have some mysterious binary x file. A few tips to quickly look around what inside it:

cat x | od -xa
cat x | xxd
cat x | strings

Filed under: Uncategorized,

crosscompiling on debian

http://psas.pdx.edu/DebianCrossCompilerHowto/

Filed under: Uncategorized, ,

dynamic libraries on linux

Recently there was interesting thread on dynamic kernel libraries in linux. I found a few links from this discussion interesting.

http://www.iecc.com/linker/
http://www.linuxjournal.com/article/6463
Linkers & Loaders
understanding elf using readelf and objdump
executable and linkable format
notes on elf file format

Filed under: Uncategorized,

irc client for ubuntu

Quick irc intro for ubuntu users https://help.ubuntu.com/community/InternetRelayChat.

Filed under: Uncategorized,

skip broken commits with git-bisect

This was found somewhere on LKML.

You can do “git bisect skip” to make git know that some particular commit
is not a commit you can test, and you can also move away from a whole
problematic region to another area by doing

git bisect visualize

to bring up a graphical gitk view of what all you have left to bisect,
pick a good point (still reasonably close to the middle) there, and do

git reset --hard

and try that kernel instead of the one git bisect suggested.

Filed under: Uncategorized,