LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 11-16-2010, 12:42 AM   #1
Skullsoldier
Member
 
Registered: Oct 2010
Distribution: Debian
Posts: 32

Rep: Reputation: 0
removing a program doesn't work?


How hard can it be to delete a program in debian. search the web to check that i am doing the right thing to from the start to uinstall and still the program hangs there

Okey this is what i have done.
Code:
 apt-get remove bacula
Code:
 apt-get --purge remove bacula
after this the terminal tells it has been successfully uninstalled.

but then i go to cd /etc/bacula the conf files are still there? and i can run the command bconsole and still it is trying to start :O

Then i run the command
Code:
dpkg --list | grep bacula
and find out that bacula are still listed there :O Sow somebody wise in the linux world want to give me a hint?


Regards Skullsoldier
 
Old 11-16-2010, 01:47 AM   #2
HollowPoint64Bit
LQ Newbie
 
Registered: May 2008
Posts: 3

Rep: Reputation: 1
Did you install the package with apt-get install or using dpkg -i would be my first question. I've had problems with things like this myself before, packages that leave things laying around. Did you get any errors when you ran apt-get --purge remove?
 
Old 11-16-2010, 01:54 AM   #3
Skullsoldier
Member
 
Registered: Oct 2010
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by HollowPoint64Bit View Post
Did you install the package with apt-get install or using dpkg -i would be my first question. I've had problems with things like this myself before, packages that leave things laying around. Did you get any errors when you ran apt-get --purge remove?
i installed using apt-get. and i didin't get any errors when i removed :/

Edit: i meant when i use the command apt-get --purge remove? i didn't get any errors. just to make to everybody clear

Last edited by Skullsoldier; 11-16-2010 at 02:02 AM.
 
Old 11-16-2010, 02:11 AM   #4
HollowPoint64Bit
LQ Newbie
 
Registered: May 2008
Posts: 3

Rep: Reputation: 1
Which version of Debian are you using? Although it should be irrelevant. There are usually several different apps/libs that come with bakula, so one thing I would try would be apt-get --purge remove bakula* to wild card remove everything on your system like bakula-director etc. etc. I haven't done debian for a while, opting for Ubuntu instead for ease and speed (Installing, setting up, configuring etc. I love Debian but some times they just make it too hard and time consuming for no good reason, installing NVidia drivers and firefox etc.), but from memory there is a default version of bakula already on the debian system, so you may be having issues there also.
 
Old 11-16-2010, 02:31 AM   #5
Skullsoldier
Member
 
Registered: Oct 2010
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by HollowPoint64Bit View Post
Which version of Debian are you using? Although it should be irrelevant. There are usually several different apps/libs that come with bakula, so one thing I would try would be apt-get --purge remove bakula* to wild card remove everything on your system like bakula-director etc. etc. I haven't done debian for a while, opting for Ubuntu instead for ease and speed (Installing, setting up, configuring etc. I love Debian but some times they just make it too hard and time consuming for no good reason, installing NVidia drivers and firefox etc.), but from memory there is a default version of bakula already on the debian system, so you may be having issues there also.
Running debian-503-i386. and my bacula version is 5.0.3-2 ow sow i think :/

already tried apt-get remove bacula and then apt-get --purge remove bacula the files are still there after i deleted. as i explained in my first post. Okey that doesn't sound good that there is maybe a pre installed bacula system on my computer before i even install my own bacula. have to make some research about the subject
 
Old 11-16-2010, 06:22 AM   #6
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Quote:
already tried apt-get remove bacula and then apt-get --purge remove bacula the files are still there after i deleted.
I think HollowPoint64Bit was implying you should use the * wildcard to remove all bacula versions/packages.

I.E.

Code:
apt-get remove bacula*
 
1 members found this post helpful.
Old 11-17-2010, 03:14 AM   #7
Skullsoldier
Member
 
Registered: Oct 2010
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by alli_yas View Post
I think HollowPoint64Bit was implying you should use the * wildcard to remove all bacula versions/packages.

I.E.

Code:
apt-get remove bacula*
Thanks alli_yas for the tip now bacula is almost fully deleted from the system ^^ expect for 2 files in /etc/init.d/ strangely it left this two files :/

Code:
-rwxr-xr-x 1 root root  1729 2009-01-09 22:07 bacula-fd
-rwxr-xr-x 1 root root  1706 2009-01-09 22:07 bacula-sd
 
Old 11-17-2010, 07:59 AM   #8
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

from the man page:
Code:
remove
           remove is identical to install except that packages are removed instead of installed. Note the removing a package leaves its configuration files in system. If a plus sign is appended to the
           package name (with no intervening space), the identified package will be installed instead of removed.

       purge
           purge is identical to remove except that packages are removed and purged (any configuration files are deleted too).
So try to run
Code:
apt-get purge bacula*
and see if that will also remove the two files in /etc/init.d
 
Old 11-17-2010, 09:53 AM   #9
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Very often, files are created by an application when it initially runs. The package manager won't know anything about these, and will therefore not know how to removed them. Since you seem to be capable of identifying these yourself, you should be able to simply delete them from the filesystem.
--- rod.
 
Old 11-18-2010, 12:48 AM   #10
HollowPoint64Bit
LQ Newbie
 
Registered: May 2008
Posts: 3

Rep: Reputation: 1
The two files in /etc/init.d/ are unlikely to be config files, more likely to be binaries, they are executable, owned by root, sat in /etc/init.d/ without the libraries to support them they are useless.

Quote:
sudo rm /etc/init.d/bakula*
 
1 members found this post helpful.
Old 11-18-2010, 01:04 AM   #11
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Hi

The files in /etc/init.d/ are executable scripts created by the package installer to start/stop the application. Removing them should not cause any issues as you've already removed the application.
 
Old 11-18-2010, 07:26 AM   #12
Skullsoldier
Member
 
Registered: Oct 2010
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by HollowPoint64Bit View Post
The two files in /etc/init.d/ are unlikely to be config files, more likely to be binaries, they are executable, owned by root, sat in /etc/init.d/ without the libraries to support them they are useless.
Thanks a lot it workt now there is no bacula files anymore in init.d ^^ what does the the rm command do? if i understod it right it delets the file whitout you have to sudo?
 
Old 11-18-2010, 11:33 AM   #13
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
rm is a file deleter. The use of sudo is a completely separate issue. You may use sudo to elevate privileges as necessary to execute any command. Usually, extra (root) privileges are required to write to or delete system files. Understanding filesystem ownership and permission levels is germane to this subject. There are many online sources from which to learn about this subject.

--- rod.
 
Old 11-18-2010, 10:52 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Indeed; rm are the 1st 2 consonants in 'remove'
 
Old 11-22-2010, 07:46 AM   #15
Skullsoldier
Member
 
Registered: Oct 2010
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by theNbomr View Post
rm is a file deleter. The use of sudo is a completely separate issue. You may use sudo to elevate privileges as necessary to execute any command. Usually, extra (root) privileges are required to write to or delete system files. Understanding filesystem ownership and permission levels is germane to this subject. There are many online sources from which to learn about this subject.

--- rod.
okey thank you for the explanation
 
  


Reply



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
Removing Individual Program vraidroit Linux - Software 1 09-02-2006 10:19 PM
removing a program ayers Mandriva 4 06-27-2005 07:22 AM
Removing rpm program leonidg Linux - Software 2 12-26-2004 01:25 AM
Can I remove a program without removing other packages? rykel Linux - Software 0 05-09-2004 03:39 AM
removing a program lil213 Linux - Software 2 01-08-2004 12:59 AM

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

All times are GMT -5. The time now is 12:27 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
Open Source Consulting | Domain Registration