LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   removing a program doesn't work? (https://www.linuxquestions.org/questions/linux-newbie-8/removing-a-program-doesnt-work-844517/)

Skullsoldier 11-16-2010 12:42 AM

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:scratch:

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 :scratch:

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

HollowPoint64Bit 11-16-2010 01:47 AM

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?

Skullsoldier 11-16-2010 01:54 AM

Quote:

Originally Posted by HollowPoint64Bit (Post 4160334)
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

HollowPoint64Bit 11-16-2010 02:11 AM

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.

Skullsoldier 11-16-2010 02:31 AM

Quote:

Originally Posted by HollowPoint64Bit (Post 4160348)
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

alli_yas 11-16-2010 06:22 AM

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*

Skullsoldier 11-17-2010 03:14 AM

Quote:

Originally Posted by alli_yas (Post 4160593)
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:D 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


crts 11-17-2010 07:59 AM

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

theNbomr 11-17-2010 09:53 AM

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.

HollowPoint64Bit 11-18-2010 12:48 AM

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*

alli_yas 11-18-2010 01:04 AM

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.

Skullsoldier 11-18-2010 07:26 AM

Quote:

Originally Posted by HollowPoint64Bit (Post 4162724)
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 :cool: 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?

theNbomr 11-18-2010 11:33 AM

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.

chrism01 11-18-2010 10:52 PM

Indeed; rm are the 1st 2 consonants in 'remove' :)

Skullsoldier 11-22-2010 07:46 AM

Quote:

Originally Posted by theNbomr (Post 4163320)
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 :o


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