LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2012, 09:45 AM   #1
esgol
Member
 
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Rep: Reputation: Disabled
Question Is there an unistall command for packages vs install? What about libraries like gcc?


Except from the famous install command is there a reverse unistall command for unistalling packages?

And if i unistall library packages like the latest g++-4.7 everything is reset and can reinstall it or install older versions?

Or the system ends with damaged core lib files and its in trouble like if trying downgrading a gcc version?
 
Old 07-15-2012, 09:52 AM   #2
jv2112
Member
 
Registered: Jan 2009
Location: New England
Distribution: Arch Linux
Posts: 719

Rep: Reputation: 103Reputation: 103
Most distributions ( ie : Ubuntu , Debian Arch et cettera ) have a package manager to help with installing and removing packages ( software).

The manager is distribution specific in most cases. I use Arch which uses pacman. Debian based distributions use aptitude or apt-get.

What distribution are you running ?
 
Old 07-15-2012, 10:37 AM   #3
esgol
Member
 
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
ops! Debian. Sorry thought was general. But had used Kubuntu also
 
Old 07-15-2012, 10:41 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,756

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Quote:
And if I unistall .. packages like the latest g++-4.7 everything
is reset and can reinstall it or install older versions ?
You are supposed to have all the versions installed at the same time.
They have unique file names / locations : No conflicts.
And no reason to uninstall a compiler.

Example Debian Wheezy : /usr/bin/ g++-4.4 g++-4.5 g++-4.6 g++-4.7


.
 
Old 07-15-2012, 02:19 PM   #5
esgol
Member
 
Registered: Jul 2012
Posts: 106
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Ah ok so for unistalling packages in general only through the graphic package manager eh no konsole comands...
 
Old 07-15-2012, 02:24 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Originally Posted by esgol View Post
Ah ok so for unistalling packages in general only through the graphic package manager eh no konsole comands...
Aptitude can be used as command also not just GUI.
aptitude install <package-name>
apt-get is cl only
synaptic is GUI only

Last edited by EDDY1; 07-15-2012 at 02:25 PM.
 
1 members found this post helpful.
Old 07-15-2012, 04:28 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,756

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
Yes, of course you can uninstall all surplus packages with a command :

# apt-get remove <package-name1> <package-name2> <package-name3>
 
Old 07-15-2012, 05:00 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
All this can be read also in Debian's documentation: http://www.debian.org/doc/manuals/de...gtools.en.html
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unistall gcc 4.1 and want to install gcc 2.95 krap Linux - Newbie 3 05-23-2008 01:07 AM
which all rpm packages should i have to install gcc with g++ support pradeepmenon777 Mandriva 3 02-13-2005 09:36 AM
How do I unistall packages (dc-qt) Wiggy Linux - Software 1 05-05-2004 08:54 AM
How to unistall packages? rodan11 Linux - Newbie 3 01-22-2004 09:41 PM
slackware 9 what packages do i have to install to make my gcc work zeroversion Linux - Software 1 11-26-2003 12:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration