LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-14-2015, 01:06 AM   #1
TheWinterSnow
LQ Newbie
 
Registered: Dec 2015
Posts: 7

Rep: Reputation: Disabled
Finding unknown package names and deleting software


As a relative noob to linux this has me baffled. When you install a program with apt-get and then later decide you want to completely delete that program, how in world do you find the package name of that program so that you can delete it?

I installed eclipse CDT and sublime text using what was recommended by each website. Using the terminal I installed both. I have no use for eclipse on my linux build and the version of sublime was incorrect (first version, not even v2) so I try to delete them and I cannot find the package.

So my question is this:

If you install software with apt-get:

1) How do you figure out what the terminal command is to open that program for example no where in the installation process does sublime ever tell you the command to open a file with sublime is "subl" so if I install a new program how am I supposed to know what the command is?

2) When you want to uninstall said program but don't know what the package name is, how do you get the package name without scrolling through the thousands of OS programs in the root directory? In my case the command names eclipse and subl aren't the package names. With only knowing the command name how do I easily find the package name?

I managed to find where eclipse was installed an deleted it manually but unlike windows it installed java as well and is still showing up in the packet manager. Since I don't know where those files are located I cannot delete them. I have no use for java on my build so I would prefer to free up that almost 1GB of space, yet I don't know how to delete all those unneeded files without spending essentially years searching and deleting everything I think I don't need.

Last edited by TheWinterSnow; 12-14-2015 at 01:09 AM.
 
Old 12-14-2015, 03:09 AM   #2
polpak
Member
 
Registered: Jan 2011
Location: Planet Earth, Australia, NSW
Distribution: openSUSE Leap 42.1 (x86_64)
Posts: 116

Rep: Reputation: 9
Assume you are using Debian,

Quote:
11.4 How can I configure an X11 program's application defaults?

Debian's X programs will install their application resource data in the /etc/X11/app-defaults/ directory. If you want to customize X applications globally, put your customizations in those files. They are marked as configuration files, so their contents will be preserved during upgrades.
Source: https://www.debian.org/doc/manuals/d...#s-appdefaults

For Install, UnInstall and related suggest read Debian: https://www.debian.org/doc/manuals/d...gtools.en.html


Suggest also Browse: https://www.debian.org/doc/manuals/d....html#contents



Linux is Learning :-)

BTW am openSUSE which is slightly different ;-)

.
 
Old 12-14-2015, 07:01 AM   #3
Habitual
LQ Addict
 
Registered: Jan 2011
Posts: 8,348
Blog Entries: 11

Rep: Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327Reputation: 2327
Code:
apt-get remove --purge packagename
will remove about everything regarding the package packagename, [...]
Particularly useful when you want to 'start all over' with an application because you messed up the configuration.

http://askubuntu.com/questions/23156...apt-get-remove
https://help.ubuntu.com/community/AptGet/Howto
 
Old 12-14-2015, 03:17 PM   #4
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Bodhi, Mint-xfce
Posts: 183

Rep: Reputation: 21
You can install a graphical tool like synaptic. Use it to display info about the package you installed and pulling up its properties you can see its files (usually in /usr/bin) and dependencies. You can then elect to remove it from your system. You can also remove its dependencies, just be sure they are not used by another package you may need!

Warning: By the way let synaptic or apt remove the package for you, ie don't manually delete files outside of a package managing tool.

Last edited by roy_lt_69; 12-14-2015 at 03:21 PM. Reason: Added warning!
 
Old 12-14-2015, 07:51 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,263
Blog Entries: 16

Rep: Reputation: 3124Reputation: 3124Reputation: 3124Reputation: 3124Reputation: 3124Reputation: 3124Reputation: 3124Reputation: 3124Reputation: 3124Reputation: 3124Reputation: 3124
You can use dpkg to list installed packages. See this: https://wiki.debian.org/ListInstalledPackages
 
Old 12-15-2015, 02:19 PM   #6
joe_2000
Member
 
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 823

Rep: Reputation: 237Reputation: 237Reputation: 237
Quote:
Originally Posted by frankbell View Post
You can use dpkg to list installed packages. See this: https://wiki.debian.org/ListInstalledPackages
Expanding on this reply you can use
Code:
dpkg -S /path/to/file
where /path/to/file is the absolute path of a file that you know belongs to the program you want to uninstall. This could be for example the executable that runs it.
If you started the program e.g. by typing "eclipse" into the command line you can find that executable by running
Code:
which eclipse
 
  


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
Update RPM package with changed Names from old to new Package bonsei Programming 1 11-28-2012 07:30 AM
finding and deleting contents of Trash 4pixels Linux - Newbie 3 03-13-2012 09:19 PM
[SOLVED] looking for a GUI application for finding and deleting duplicate 'data' files Robert.Thompson Linux - Newbie 2 01-11-2011 01:14 AM
[SOLVED] Finding and deleting a sequence of letters geodave0110 Linux - Newbie 3 12-08-2010 01:14 PM
finding the workgroups and share names. bruse Mandriva 1 03-28-2005 01:12 AM


All times are GMT -5. The time now is 02:03 PM.

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