Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:debian [2007/12/04 15:21]
a
linux:debian [2010/03/04 13:49] (current)
a
Line 115: Line 115:
    127.0.0.1       localhost.localdomain   localhost       server1    127.0.0.1       localhost.localdomain   localhost       server1
    192.168.0.100   server1.example.com     server1    192.168.0.100   server1.example.com     server1
 +
 +
 +
  
  
Line 157: Line 160:
 # #
  
- dpkg-query -W --showformat='${Package}\n'\\ +==== Some dpkg-hacks ==== 
-\\ + 
- dpkg-query -W --showformat='${Installed-Size} ${Status} ${Package}\n' | sort -n+   dpkg-query -W --showformat='${Package}\n' 
 +   dpkg-query -W --showformat='${Installed-Size} ${Status} ${Package}\n' | sort -n 
 +   dpkg --get-selections | awk '{ print $1; }'| tr "\n" " " 
 +**Sorting debian packages installed by size** 
 +   dpkg-query --show --showformat='${Package;-50}\t${Installed-Size}\n'  | sort -k2 -n 
 + 
 + 
 +== How to disable IPv6 in debian linux == 
 +/etc/modprobe.d/aliases\\ 
 +net ipv-10 off\\ 
 +net ipv6 off\\ 
 + 
 +===== Tips & troubleshooting ===== 
 +==== 'apt-get' (Debian) says "E: Dynamic MMap ran out of room" and bails out ==== 
 + 
 +Create a file **/etc/apt/apt.conf** and put something like: 
 + 
 +   Apt::Cache-Limit 67108864; 
 + 
 +in it. If it still fails, make that number higher. 
 + 
 +==== apt-get (from Debian) suddenly segfaults ==== 
 + 
 +Delete the file '**/var/cache/apt/pkgcache.bin**' and re-run '**apt-get update**'
 + 
 +==== Create a backup list of packages and resinstall ==== 
 + 
 +   sudo dpkg --get-selections > package_list.txt 
 + 
 +Save the text file on a thumb drive, format the drive, reinstall Ubuntu/Debian, then to a 
 + 
 +   sudo dpkg --set-selections < package_list.txt 
 +   sudo apt-get -y update 
 +   sudo apt-get dselect-upgrade
  
linux/debian.1196778115.txt.gz · Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready