software installation - How do I install a .deb file via the command line? - Ask Ubuntu


how install .deb file via command line?

packages manually installed via dpkg command (debian package management system). dpkg backend commands apt-get , aptitude, in turn backend gui install apps software center , synaptic.

something along lines of:

dpkg --> apt-get, aptitude --> synaptic, software center

but of course easiest ways install package be, first, gui apps (synaptic, software center, etc..), followed terminal commands apt-get , aptitude add nice user friendly approach backend dpkg, including not limited packaged dependencies, control on installed, needs update, not installed, broken packages, etc.. lastly dpkg command base of them.

since dpkg base, can use install packaged directly command line.

install package

sudo dpkg -i deb_package 

for example if package file called askubuntu_2.0.deb should sudo dpkg -i askubuntu_2.0.deb. if dpkg reports error due dependency problems, can run sudo apt-get install -f download missing dependencies , configure everything. if reports error, you'll have sort out dependencies following example how resolve unmet dependencies after adding ppa?.

remove package

sudo dpkg -r package_name 

for example if package called askubuntu should sudo dpkg -r askubuntu.

reconfigure existing package

sudo dpkg-reconfigure package_name 

this useful when need reconfigure related said package. useful examples keyboard-configuration when want enable ctrl+alt+backspace in order reset x server, following:

sudo dpkg-reconfigure keyboard-configuration 

another great 1 when need set timezone server or local testing computer, use use tzdata package:

sudo dpkg-reconfigure tzdata 

Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User