Linux Debian Package

From FroggDev - En
Jump to: navigation, search

Package manager (apt-get)

list of servers in /etc/apt/sources.list & /etc/apt/sources.list.d/

  • apt-get {Command} --{Parameters} "{ProgramName}"
{Command}=install
option: 
	install 				[C]install packet
	-f					[P]repair packet	
	-v					[P]update packet		
	-y					[P]auto validation	
{Command}=remove
option: 
	remove					[C]uninstall packet
	autoremove				[C]uninstall packet & dependencies
	--purge					[P]remove packet configuration files
	-y					[P]auto validation
{Command}=update
option: 
	update 					[C]update apt-get list
	-y					[P]auto validation
{Command}=upgrade
option: 
	upgrade 				[C]update all packets
	-y					[P]auto validation
{Command}=dist-upgrade
option: 
	dist-upgrade 				[C]update the system
	-y					[P]auto validation
  • find a package in dpkg package list
dpkg -l | grep '{name}'
  • check update availability
apt-cache policy "{ProgramName}"		
  • install a new package from .deb
dpkg -i {packageFileName}.deb
  • remove a package
dpkg -r {packageName}
  • console graphical interface
aptitude
  • list of installed package
dpkg --get-selections | grep -v deinstall

ou

dpkg -l