Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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.
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.
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
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 :/
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
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.
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.
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.
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.