Ubuntu: Difference between revisions
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
apt-get install openssh-client openssh-server | apt-get install openssh-client openssh-server | ||
List packages on one machine and install on another. | ==List packages on one machine and install on another.== | ||
dpkg --get-selections > installed-software | dpkg --get-selections > installed-software | ||
dpkg --set-selections < installed-software | dpkg --set-selections < installed-software | ||
dselect | dselect | ||
Upgrade. | ==Upgrade.== | ||
sudo apt-get -y update | sudo apt-get -y update | ||
sudo apt-get -y upgrade | sudo apt-get -y upgrade | ||
Which package provides. | ==Which package provides.== | ||
http://packages.ubuntu.com/ | http://packages.ubuntu.com/ | ||
List available linux packages. | ==List available linux packages.== | ||
apt-cache pkgnames | apt-cache pkgnames | ||
Revision as of 06:58, 17 November 2012
Search for packages.
http://www.ltsp.org/twiki/bin/view/Ltsp/WebHome
Which package contains file
$ apt-file search filename
List contents of package
$ apt-file list packagename
Update apt-file database
# apt-file update
==Prepare ltsp environment.
sudo cp /etc/apt/sources.list /opt/ltsp/i386/etc/apt/sources.list sudo chroot /opt/ltsp/i386 apt-get update
show installed packages in cronological order
cat /var/log/dpkg.log* | grep "\ install\ " | sort | less
Installed packages.
dpkg --get-selections apt-get install openssh-client openssh-server
List packages on one machine and install on another.
dpkg --get-selections > installed-software dpkg --set-selections < installed-software dselect
Upgrade.
sudo apt-get -y update sudo apt-get -y upgrade
Which package provides.
http://packages.ubuntu.com/
List available linux packages.
apt-cache pkgnames
install local deb packages
sudo dpkg -i 1.deb 2.deb
install from experimental
# add next row to /etc/apt/sources.list and do an apt-get update deb http://ftp.debian.org/debian/ experimental main contrib non-free # Then install latest version of ekiga. apt-get -t experimental install ekiga