| /AptErrors /AptProxy /AptSources /Links /dpkg Tipps |
apt-get update dpkg --set-selections <myselections apt-get -u dselect-upgrade
von BerndBau COLUMNS=136 dpkg -l|sort|grep -v '|' >pakete-full.lst
http://www.librelogiciel.com/software/debsync/Download/action_Download debsync is a program which helps to synchronise the installed packages lists on existing Debian GNU/Linux machines. debsync gets a list of installed packages from a master host, and installs or removes packages on several hosts to match the master's package list.
debsync can do its work either over ssh (default) or rsh.
alle mozilla Bestandteile in die kicklist dpkg-awk "Status: .* installed$" |grep Package: |grep -i mozilla |cut-f2 -d" " >kicklist Pakete aus der Datei kicklist löschen dpkg -P `cat kicklist`
If you are looking for big installed packages
dpkg-awk "Status: .* installed$" -- Package Installed-Size| awk '{ print $2 }' | \
egrep -v '^$' | xargs -n2 echo | perl -pe 's/(\S+)\s(\S+)/$2 $1/' | sort -rg
will list the packages with size in descending order.
http://www.infosilosoft.com/winzix/linux/knoppix/manpages/grep-dctrl.html specific fields can be selected for output with the -s option.
grep-dctrl
Show all files managed by one package dpkg -L <package name> dpkg -L apache Show packages that manage a single file dpkg -S <filename> dpkg -S sshd_config Show all packages installed beginning with certain text dpkg-awk Status:install.ok.installed -- Package | grep -E "^Package: kde" There are a few things that should be mentioned about this command: First off, dpkg-awk may not be installed, so you may have to apt-get install it. dpkg-awk is a command to search dpkg db files. It will parse a db file, and then output the specified records. The second option to the command is a regular expression that the command should search for. The -- Package tells dpkg-awk to output the Package field only. The grep command may be something that you have not seen before. The -E option to grep tells it that a regular expression is following. The regular expression is enclosed in quotes so that a space can be included. The result is for it to search for a string starting with "Package: kde". Package: is included because dpkg-awk outputs this as part of the field automatically.
http://julien.danjou.info/article-apt-build.html
Immer wieder gerne genommen:
dpkg --get-selections | awk '{if ($2 == "install") print $1}' > /etc/apt/apt-build.list
-- DetlevLengsfeld 2006-07-18 08:44:14
Linux/Debian/Pakete (last edited 2011-01-29 15:29:56 by DetlevLengsfeld)