arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOME EVERGREEN USEFUL LINUX COMMANDS
#1
Hello Friends:
Today i wish to share with you some very easy but useful commands for linux Debian/Ubuntu . The experts can't really like it but newbies really want to know those commands.
two most used commands as everyone know as "apt-get update , apt-get upgrade"
so with this you can install any package with "apt-get install [package name]
But mostly we got problem when we wish to uninstall or remove any app who misbehave or unused. and mostly running apps are difficult to be remove with simple remove command.
so i like to share some special commands.
if you victim with broken package. try this sequence of any one of those.

sudo apt-get clean

it will clean registry or cache.

sudo dpkg --configure -a

it will auto configure package list again.

sudo apt-get autoremove

This command simply helps you to remove broken package.
but mostly with this command you reply from server that package not found. try to reinstall or etc....
then you try this command to install selected package again with good complete files.

sudo apt-get upgrade && sudo apt-get -f install


"-f" is use for force process. you can use it for various process.you can also use it as simple as

sudo apt-get -f install package_name #(force install)

sudo apt-get -f remove package_name  #(force remove)

but if you again get any error you try this

sudo dpkg --remove --force-remove-reinstreq package_name

it will again try to force remove your unwanted package.
at the end try this to purge if your package are distributed on different places. and simple remove command can't collect full data.

sudo apt-get autoremove --purge

removing package with all cache and check the availability on package list.

sudo rm -rf  /var/cache/apt/archives/nodejs_0.10.28-1chl1~trusty1_amd64.deb

also this if above are mot works.

sudo dpkg -i --force-overwrite /var/cache/apt/archives/nodejs_0.10.28-1chl1~trusty1_amd64.deb


Hope you like it and it's makes your work more easy to install and remove any package..

Regards
Sagher
Heart LOVE FOR ALL  HATRED FOR NONE Heart


Messages In This Thread
SOME EVERGREEN USEFUL LINUX COMMANDS - by sagher - 03-13-2017, 06:08 AM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting