View Full Version : APT commands
Biffy
March 27th, 2005, 09:54 PM
I am using Synaptic now, and it works just fine.
But lets say i need to use the command-line APT one day. What do i type, to reload my list, and to do a "smart upgrade" ?
I know that i can RTFM, but it is really important that i type the right commands so nothing bad happens to my system.
bored2k
March 27th, 2005, 09:58 PM
I am using Synaptic now, and it works just fine.
But lets say i need to use the command-line APT one day. What do i type, to reload my list, and to do a "smart upgrade" ?
I know that i can RTFM, but it is really important that i type the right commands so nothing bad happens to my system.
sudo apt-get install package.name
sudo apt-get update
sudo apt-get install -d package.name to just download the package.name
sudo apt-get remove package.name
sudo apt-get upgrade for non system upgrades
sudo apt-get dist-upgrade for system and normal upgrades
Buffalo Soldier
March 27th, 2005, 10:05 PM
Typing apt-get help will display:Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 ...]
apt-get [options] source pkg1 [pkg2 ...]
Commands:
update - Retrieve new lists of packages = Reload
upgrade - Perform an upgrade = Default Upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
remove - Remove packages
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8) = Smart Upgrade
dselect-upgrade - Follow dselect selections
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies
az
March 27th, 2005, 10:30 PM
Do not forget
apt-get -s install <package> (to just simulate what would happen to your system)
apt-get -f install (do not specify a package. My package system is confused, Fix it.)
apt-cache search <search word>
apt-cache show <package>
You will always be asked before apt would remove or make big changes to your syste, If you just ask to install one package and it does not screw anything up, it will go ahead, otherwise, it will tell you what it needs to do and ask you if that is what you want .
Biffy
March 28th, 2005, 11:04 AM
Thanks guys!
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.