03-13-2017, 06:08 AM
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.
it will clean registry or cache.
it will auto configure package list again.
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.
"-f" is use for force process. you can use it for various process.you can also use it as simple as
but if you again get any error you try this
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.
removing package with all cache and check the availability on package list.
also this if above are mot works.
Hope you like it and it's makes your work more easy to install and remove any package..
Regards
Sagher
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.
Code: (Select All)
sudo apt-get clean
it will clean registry or cache.
Code: (Select All)
sudo dpkg --configure -a
it will auto configure package list again.
Code: (Select All)
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.
Code: (Select All)
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
Code: (Select All)
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
Code: (Select All)
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.
Code: (Select All)
sudo apt-get autoremove --purge
removing package with all cache and check the availability on package list.
Code: (Select All)
sudo rm -rf /var/cache/apt/archives/nodejs_0.10.28-1chl1~trusty1_amd64.deb
also this if above are mot works.
Code: (Select All)
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
LOVE FOR ALL HATRED FOR NONE