I have been using debian for ages, but I still don't know all the tricks or how to use all the advanced apt / dpkg features, and I didn't need to with debian. But because knoppix has a somewhat difficult package selection, having a list of the common commands could be handy to answer questions on this forum.
I'm talking about stuff like how to "hold back" a package, how to install one from a particular release etc.
So here goes, help me out here.. Hope this can be come a quick reference.
To list all the files in a package
to install a package of a particular release ( assuming it's in your sources.list )Code:dpkg -L packagenameCode:apt-get install -t unstable packagename
To put a package on hold
To take a package off holdCode:echo packagename hold | dpkg --set-selections
To list the version of an installed packageCode:echo packagename install | dpkg --set-selections
To list packages containing a certain string in its package name, version or descriptionCode:apt-cache policy packagename | grep Installed
HTH,Code:COLUMNS=120 dpkg -l | grep string
orth
Tells the status (hold, purge etc..) of the package.
To show anything in database with the package name.Code:dpkg --get-selections <package name>
To deinstall the package with all configuration files.Code:dpkg -l ¦ grep <package name>
To save or edit your packages status use dpkg --get-selections > current_selections.txt re-directs your packages to the file, to restore list dpkg --set-selections < current_selections.txt then apt-get update to refresh then apt-get upgrade to make the changes , also can be used to keep your current settings on any install just restore the list to the new install and apt-get update and upgrade or dist-upgrade and you will have the same software packages on the new install.Code:dpkg --purge <package name>
apt-cache showpkg <package name>
This command will display the dependencies of the package and what the package provides
apt-cache search <package name>
This command will search the package cache and display packages that have a relation to the package.
Usefull apt options -s simulate the action of apt-get the --purge option will purge the configuration files when removing a package(s).
How to list contained files in dselect or aptitude? Or is there any other package management having that feature?
synaptic (and apt-get too) only want to remove KDE 3.1.2, instead of upgrading to 3.1.3... ??? why, wazzup?
somebody please show me how to upgrade kde once i installed knoppix in my hdd. i'd like to install it and get kopete since gaim still cannot connect to yahoo. pretty please?
Do you really need to update KDE for this.Originally Posted by popuman
If you're having problems getting kopete, just try this.
apt-get update
apt-get -t unstable kopete
Post back if that works.
thanks. complied with instructions. output was: E:Invalid operation kopete
help? please?
aay made small mistake: the command should be:(note the "install", thats the missing command apt-get complained aboutCode:apt-get -t unstable install kopete
you could've found that out easy by reading the man about apt-get... THATS how you learn, not by asking us...
how to get info about a command?
soCode:man (command)
gives manual of apt-get. you can use this for every command!Code:man apt-get
good luck...
HP Workstation Z640 2x Xeon E5-2623V4 32GB Ram 2x 256GB SSD Quadro 2000 Linux GA
$212.49
Dell Poweredge R630 2x Xeon E5-2680 v4 2.4ghz 28-Cores / 128gb / H330 / 2x 1TB
$334.99
Lenovo Thinkstation P510 E5-1620 V4 16GB RAM 512GB SSD DVD Quadro M2000 W10 Pro
$184.95
Dell Precision T5600 Xeon E5-2603 1.80GHz 16GB RAM 1TB HDD Quadro 600 #27
$76.99
Intel Xeon E5-2680 v4 SR2N7 2.40GHz 35MB 14-Core LGA2011-3 CPU Processor
$14.99
SR1XP Intel Xeon E5-2680 v3 12 Core 30MB 2.5GHz LGA 2011-3 Grade A Processor
$3.96
Intel Xeon E7-8890 V4 2.20GHz 24-Core 60MB LGA2011 Server CPU Processor SR2SS
$29.99
Intel Xeon E5-2667 V4 SR2P5 (3.2GHZ/8-CORE/25MB/135W) PROCESSOR CPU
$29.95
Intel Xeon E5-2697 V4 2.30 GHz 18C 2011-3 2400MHz 45MB 145W SR2JV CPU Processor
$45.00
Intel Xeon E5-2697 v4 2.3GHz 18-Core Processor CPU LGA2011 SR2JV
$49.99