Unistall Vim Mac Os High Sierra 10.13.6 - macos

I don't know why I ever wanted to install it on my machine.
Please can someone help me unistall it?
Haven't found anywhere tips or resources on how to do that.
I have Homebrew installed and I have already tried
brew uninstall --force vim
and
brew uninstall macvim

brew installs software in /usr/local/bin/.
In /usr/bin (since OS X El Capitan) you can only find applications that have been shipped with macOS itself, so /usr/bin/vim is part of the system and can't be uninstalled.
Tools like brew or macports should use /usr/local or /opt to prefix their installation paths.
The whole /usr directory except /usr/local is under Integrity Protection, which means that you cannot change its content even with sudo.
[...]System Integrity Protection is designed to allow modification of these protected parts only by processes that are signed by Apple and have special entitlements to write to system files, such as Apple software updates and Apple installers.[...]
System Integrity Protection includes protection for these parts of the system:
/System
/usr
/bin
/sbin
Apps that are pre-installed with OS X
Paths and apps that third-party apps and installers can continue to write to include:
/Applications
/Library
/usr/local

I don't know why I ever wanted to install it on my machine.
Well, it was already there so yeah, why did you install another one?
Please can someone help me unistall it?
We certainly can… if you tell us how you installed it as the exact method will be different if you installed it from source, via MacPorts, via homebrew, or any another method. If you even installed it, that is.
FWIW, Vim has always been installed at /usr/bin/vim on Mac OS X since forever. If $ ls -l /usr/bin/vim ends with /usr/bin/vim you can stop worrying now as your system is pretty much OK. If not, show us the whole line so that we can go further.

Related

Brew installs not appearing in /usr/local/bin

I've installed a package using brew to a new Mac, imagemagick, and carried over a number of utilities that look for convert, a part of imagemagick in /usr/local/bin. These utilities can't find convert, using which, it's in /opt/homebrew/bin/convert.
In addition, I'm trying to get vscode to work from a command line. It's set up but running code gives the error ./MacOS/Electron: No such file or directory. Electron has been installed using brew but can only be found, again, in /opt/homebrew/bin/convert.
Any thoughts?
Since Homebrew v3.0.0, the default prefix is different depending on the chip architecture. The defaults are the following:
/opt/homebrew on Apple silicon
/usr/local on Intel
The main reason for this change was for Rosetta 2 compatibility.
It appears that you're trying to transition from an Intel machine to an Apple Silicon one. The simplest way to do this might be to reinstall all the formulae again via brew bundle. This shouldn't take very long thanks to the use of pre-built binaries.
Alternatively, you can always manually add /opt/homebrew/bin to your PATH (/usr/local is already in path).

Can I install emacs 24.5 on OS X El Capitan without deleting the native OS X emacs?

I want to install the latest version of emacs, but if I do this will it be in conflict with the version that comes pre-packaged with os x? Do I need to delete the native emacs? Also, it seems emacsforosx.com is a popular option, but I lot of people swear by homebrew... why would I go with one option over the other?
There is no reason to remove the system-supplied Emacs; any well-behaved, properly packaged third-party version will install fine alongside, not over, the system binaries and libraries.
Installing a current version of emacs is normal practice because the OSX provided version is outdated. You have a number of options, but I've found using the 'homebrew' method the easiest.
Due to changes in OSX 10.11, you need to take some additional steps when installing homebrew. If you already have homebrew installed, you will probably need to 'fix' the permissions on /usr/local. If you don't have homebrew installed, then there are some additional steps you will need to take to create the /usr/local path. This is documented on the hombrew site at El Capitan and Homebrew

Where are the installed libs/apps/programs in Mac?

There seems to be several different locations where a installed lib/app can go, depending on how it's installed. I am not sure where to look for a particular one. As far as I understand:
Preinstalled apps are in /Applications, /usr/bin, /usr/lib
Macports install things under /opt/local/bin, /usr/local/lib
Homebrew put files in /usr/local/cellar and symlink to
/usr/local/...
Compilation with a Makefile can go anywhere, usually in
/usr/local/...
What about /Library/Frameworks/ ? How is something installed there? Can I delete it just by removing the folder? Can things installed in different ways have dependencies in between? How does it work??
OS X installs system components into /System and /usr.
Some 3rd Party bits (and Apple products other than the OS) are install to /Library
Some 3rd Parties (like Homebrew) install to /usr/local
MacPorts by default installs to /opt/local and /Applications/MacPorts
Fink by default installs to /sw

How to make Apple X11 the default X11 app?

I have OS X mavericks. Yesterday I installed xQuartz but then decided that I want to make Apple's X11 the default X11 eninronemnt. I check the website of xQuartz where it said I should run the following commands:
(XQuartz.app) launchctl unload -w /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
(Apple's X11.app) launchctl unload -w /System/Library/LaunchAgents/org.x.startx.plist
(MacPorts' X11.app) launchctl unload -w /Library/LaunchAgents/org.macports.startx.plist
The first command runs correctly, but the last two gives me that there's no such file or directory error. So now how can I make Apple's X11 the default?!
From XQuartz's faq:
Uninstall (Snow Leopard or Later)
XQuartz does not replace the system X11 on Snow Leopard, so you can go
back to the Apple-provided X11.app rather easily. Just launch X11.app
rather than XQuartz.app to get the older server. If you want to make
Apple's X11.app the default server (owning the launchd $DISPLAY
socket), then you should disable the
org.macosforge.xquartz.startx.plist as described in the first
question. After logging out and back in, Apple's X11.app will be
default. If you still want to remove XQuartz.app from your system, you
can do that with these two steps:
launchctl unload /Library/LaunchAgents/org.macosforge.xquartz.startx.plist
sudo launchctl unload /Library/LaunchDaemons/org.macosforge.xquartz.privileged_startx.plist
sudo rm -rf /opt/X11* /Library/Launch*/org.macosforge.xquartz.* /Applications/Utilities/XQuartz.app /etc/*paths.d/*XQuartz
sudo pkgutil --forget org.macosforge.xquartz.pkg
Please file a bug report
to let us know why you reverted to the system X11.app, so we can
address the problem in a future release.
Apple's X11 is no longer supported in Mavericks. You can run it but it may not work. Only xQuartz has been updated and supported up to Mavericks. The old apple's x11 no longer comes with the operating system. As a matter of fact, you can't install it unless you have access to an old install disk or obtain the file from someone else. Apple even suggests to install XQuartz instead. So unless you managed to install apple's old x11 by hand, that file shouldn't exist.

confused about macports

I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am learning macports, and I read information about macports from http://www.macports.org/. But I am still confused what macports is after reading information from this site.
I am previous working on Windows and Linux, could anyone let me know what macports is (in easy words) and what is the similar item on Windows/Linux?
thanks in avdance,
George
macports is a way of getting executables and other compiled code installed on your computer without having to work out the details of compiling/linking each apllication.
It is equivalent to a package manager under Linux and other Unicies. There is no direct equivalent under Windows.
It is just a convenient way to install a lot of *nix soft on your mac book. They are installed separately (not overwriting) from binaries/daemons/libs already installed on your mac (by default in folder /opl/local). Also they are much fresher than those installed on your mac.
For example 10.6 ships with bash 3.2, but after running sudo port install bash, you will get version 4.x (to make it your default shell add /opt/local/bin/bash to file /private/etc/shells, run chsh -s /opt/local/bin/bash and reopen terminal).
Note other os x package managers: fink and homebrew (superuser question)

Resources