Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I've installed MongoDB version i686-2.2.3 from source, in a Ubuntu 12.10 box. Now I want to remove it.
How can I do it properly?
Best wishes,
If you installed from source you would not have compiled it but instead just extracted the tar it came in and ran it.
The very first thing you need to do is figure out what additional stuff you put on, i.e.: a init.d script.
Once you remove all the additional threads you have created you can remove the directory that houses the mongo binary, normally a folder called mongo on most systems and then you need to delete your data directory, normally /data/db/ under the source version.
Of course, this assumes you installed from source and not a package, if you installed from a package you can do:
apt-get remove --purge mongodb
Edit
Alternatively if you are using autoremove:
apt-get autoremove --purge mongodb
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I am a massive fan of Homebrew and have taken to using it to manage all my applications. One very useful feature is brew switch which enables switching between different versions of Ansible. Something which I require to compile some of my websites running older software.
However, I have noticed that whenever I wish to run brew cleanup, it deletes all old versions even version 2.3.2.0 of Ansible which I still require alongside the most current version.
After sifting through numerous forums and sites I have been unable to find a solution which allows me to keep this old version of Ansible and the most current when using the brew cleanup command other than deleting everything manually.
Does anyone have a workaround or solution, I thought brew pin may be a possibility, but this seems to only work with the version currently linked.
I don't see a clean built-in way with brew cleanup to do this, but a workaround: since brew cleanup optionally takes a list of formulae to clean up, we can make such a list that contains everything but Ansible.
This is how I can get that list:
brew list | grep -v ansible
And this is how I can call cleanup to ignore Ansible:
brew cleanup $(brew list | grep -v ansible)
Maybe I want that as an alias somewhere, like bca for "brew cleanup (but not) ansible":
alias bca='brew cleanup $(brew list | grep -v ansible)'
and add that line to my ~/.bashrc.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
Improve this question
I am trying to setup supervisor via preseed for ubuntu-12.04.
The installation fails with an error in software installation step. I figured that I need to specify a couple of dependencies and I have all three relevant .deb packages under iso-path/pool/extras/*deb . The path and method is proven with other simpler .deb packages.
Here is the snippet from my preseed file:
...
d-i pkgsel/include string python-medusa-doc
d-i pkgsel/include string python-meld3
d-i pkgsel/include string supervisor
...
Has anyone else tried installing supervisor this way ? what am I missing ?
If you included all the .deb packages in your iso, you can try including this at the end of your file. This is assuming you will delay the software installation until the very end:
d-i preseed/late_command string \
in-target dpkg -i -R /pathtodir/dot-deb-files; \
in-target apt-get install -y openssh-server; \
in-target apt-get install -y #2_SOFTWARE_NAME; \
in-target apt-get install -y #3_SOFTWARE_NAME;
Copied syntax from this thread: http://ubuntuforums.org/showthread.php?t=1977570
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Problem is pretty self-explanatory - can't get MongoDB to start, and nothing is logging anything anywhere so I can figure out what's going on:
[10:10:23][root#my-server:~]$ start mongodb
mongodb stop/waiting
[10:10:28][root#my-server:~]$ ls /var/log/mongodb
[10:10:34][root#my-server:~]$ ls /var/lib/mongodb
[10:10:39][root#my-server:~]$
As you can see, mongodb immediately goes to stop/waiting, and doesn't log anything to /var/log/mongodb. There's nothing in /var/lib/mongodb either. There's nothing useful in /var/log/upstart either. Where can I look for information on what the heck upstart is doing, and why it can't seem to start MongoDB?
Answering my own question with another question: Mongo does not run when installed via mongodb-10gen package on Ubuntu 12.04. In this case, the mongodb-10gen package doesn't seem to be installing the right executables for upstart to use, and upstart helpfully doesn't log anything when the executable it expects to be present isn't there. So I've asked a followup question about what the deal with the 10gen package is.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Is there any difference between rpm and yum? I know the recent system prefer yum, but want to know if there is need for rpm also.
to expand on the Udo's answer, there is the program, "rpm", which manipulates specifically the packages it is asked to manipulate, and there is "yum", which is a more intelligent management system that can find dependencies and download .rpm files even if they're not in the system.
with the "rpm" command, you need to know the exact location of the .rpm package, but with "yum", you just need to know the name of it, and as long as it's available through your repositories list, it will be installed along with its dependencies
Yum is a package manager and rpms are the actual packages.
With yum you can add or remove software. The software itself comes within a rpm.
The package manager allows you to install the software from hosted repositories and it will usually install dependencies as well.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
Since May 14th the current version of Perl is 5.14. In Ubuntu repository the current version of Perl is 5.10 which is no longer supported. So Im trying to manually upgrading Perl.
What is the recommended way to upgrade perl 5.10 to perl 5.14 in Ubuntu?
I found the perlbrew tool, but it seems to install just in the users home.
Perlbrew docs says that you can change your $HOME dir to something else:
The directory ~/perl5/perlbrew will contain all install perl
executables, libraries, documentations, lib, site_libs. If you need to
install perlbrew, and the perls it brews, into somewhere else because,
say, your HOME has limited quota, you can do that by setting a
PERLBREW_ROOT environment variable before running the installer:
export PERLBREW_ROOT=/opt/perlbrew curl -L
http://xrl.us/perlbrewinstall | bash
download, configure, compile ....