Install Software On Mac Using Command Line


Installing packages from the command line 13 comments Create New Account

The software update tool does not update Mac App Store apps on any OS from 10.7 through 10.9.2 - only system software updates are available from the command line. The author is correct that you can't instal new updates and incorrect that other third party app updates will.

Click here to return to the 'Installing packages from the command line' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.

is that some packages (notably Fink) don't work using this installer application. Kind of frustrating when you need a command-line app on a remote computer and you can't install Fink in order to install the app! :-)
---
www.AcornWebDesigns.com
Quality websites for inexpensive prices (Is that an oxymoron?)

I also discovered this installer command the day that I read the recent article here about installing a no-ip linux client as a startup item. The .pkg that was pointed to by that article did not work via the command line. I had to do it from home. Even then it still didn't seem to be workgin right, though, so I removed it and installed the fink version which seems to be working, once I understood how to set that version up. A fully working command-line installer is much needed, but if it works on some things now that's still pretty good..
---
--- I hate Microsoft and I vote

You have to run these packages (OS updates usually fall under this category) from root.
cd /
sudo /usr/sbin/installer -pkg /path/to/pkg.pkg -target /

---
4am Media, Inc. Mac OS X Training and Consulting

sudo reboot is a harsh command, I believe you'd use all unsaved documents, I wouldn't recommend doing it this way.
Something like:
sudo osascript -e 'tell application 'Finder' to restart'
Would be much better. It would get canceled if there is unsaved data.

The information would be much more difficult to convey without the screenshots. Best mac video podcast recording software.

arr, but if your using the cli to install packages most likely the box is on a remote site, so u cant press 'save' or 'don't save' and the restart would time out
there has to be away of avoiding this because it would be nice to be able to restart and / or log out a user via the cli
jameso
---
'The time has come,' the walrus said. 'To talk of many things..'

there is .. use VNC to control the GUI remotely. for the few times I really need GUI access to my server remotely, it's perfect. For security's sake, don't add a firewall rule to open the port. Tunnel the connection through ssh from the machine you're sitting on .. ssh -L 5900:localhost:5900 remote_ip_or_dns
Then use localhost & port 5900 in your vnc client. You can have the remote machine always running the vnc server, or run it from the ssh shell.

Of course, if you go this route, isntalling via the CLI is pointless since you can just do it via the GUI.

The applescript is all very nice, but if no one is logged into the remote machine is does not work, the response is '29:36: execution error: Application isn't running (-600)' (tested with OS X 10.3.5)

This is great. Now if only I could create packages from the command line rather than using PackageMaker interactively.

You can create packages from the command line. i've done it in 10.4, but haven't tried in 10.5.
in tiger, PackageMaker will load in /Developer/Applications/Utilities/PackageMaker.app
but really all .app's are just folders, so you can call the CLI by /Developer/Applications/Uitilities/PackageMaker.app/Contents/MacOS/PackageMaker
you'll have to feed it a number of flags like -build and -p.. i think there's a man page for it somewhere.

If you look in /usr/sbin/ a couple of utils already stand out because of their name:
AppleFileServer
AppleSystemProfiler
DirectoryService
PasswordService
installer
softwareupdate
am-eject
nvram
system_profiler
appletalk
asr
bootparamd
disktool
screencapture
diskutil
You can find out what they do by looking at their man pages or running them (not as root obviously)

Some of these don't have man pages. Notably (for me):
opendiff - run the cocoa diff utility on two files
scselect - select network location
disktool - I'm sure this does something handy

Installing multiple packages from the command line
You may also find installpkg to be helpful. Installpkg will allow you to easily install multiple packages with just a single command. If you have a collection of dmg's each of which has an installer in the root directory, installpkg makes installing all the packages a snap.

By Tasnia Salinas, on January 27, 2020, in Mac Uninstaller

Summary: In this article, we show you How To Clean Uninstall All Unwanted/Outdated Programs on macOS Catalina with the best Mac App Uninstaller - Omni Remover. Make sure you have downloaded the latest version here before continuing.

Uninstall Programs Mac
Install mac command line tools

100% Free & Secure Download

To uninstall or remove programs from your Mac is not piece of cake as you would think, as there are some roguish apps, like MacKeeper and SyphonInject. macOS doesn't have standalone App Uninstaller Programs like Windows does. If you just switched from Windows PC to macOS, or somehow you are new to Mac, you may feel confused as there is no Uninstall Programs from My Mac option. You're not alone. Even senior Mac users may have trouble of uninstalling applications, programs, extentions and widgets from their Mac computers.

4 Best Methods To Uninstall Programs on Mac Catalina

macOS Catalina (macOS 10.15) has thoroughly ended support on 32-bit applications and also caused tremendous disaster on large amount of commonly used programs (like Adobe Creative Cloud, MicroSoft Office) due to its newly enhanced security gateway technology. In case you may have such a Mac App Cannot Be Opened Issue, or you simply want to get rid of a retired program on a Mac, we are going to show you how to uninstall programs on a Mac (4 Best Mac Programs Uninstall Methods Involved).

Uninstall Unwanted Programs Mac

#1 Best Programs Uninstaller App for macOS

Clean Up Orphaned Program Leftover Junk

On-demand Privacy and Storage Optimization

Mac Programs Uninstall Tool

Choose Best Method To Uninstall Unwanted Programs on Mac:

Table of Content: How To Uninstall Programs on macOS Catalina

Part 1: How To Uninstall Programs on Mac Catalina in LaunchPad

Apple App Store offers millions of applications to download and install on your Mac, and if you feel some programs are useless any more, or their trial period is over, or you've found better alternatives, you can uninstall these Unwanted/Outdated programs with ease. Don't go that hurry to remove any programs on your Mac as sometimes your operation may cause troubles. Here are some checkpoints you'd better have a look before starting.

What You Need to Know Before Uninstalling Programs on Mac
  • Mac App Removal is Permanant - To uninstall programs on a Mac, in most cases, it's permanent deletion. So make sure you have a backup copy of the program that you want to get rid of.
  • Take a look on program remnant junk - By uninstalling programs on a Mac, you have good chance that a large amount of caches and leftover junk may remain and occupy your hard drive storage.
  • Don't Uninstall macOS Pre-installed Programs - You can't uninstall programs that come as part of macOS. For instance, iTunes on macOS Mojave and earlier versions, Quick Time, Safari, Mail, App Store, etc, unless you use some 'hacking' skills via command line [Always Be Careful and Know Exactly What You're Doing].

The way to install app programs on a Mac is versatile. For example, you can buy and download apps programs from Apple App Store, install apps from a disc, or install third party software downloaded directly from developer homepage (Make sure the app you try to install is from an unidentified developer). That's the reason the method of uninstalling programs on your Mac varies. If your app programs are downloaded from App Store, you can uninstall them like deleting an app from your iPhone or iPad.

How-To Steps To Uninstall Unwanted/Outdated Programs on Mac Catalina
  1. Step 1:

    On your Mac, Open Launchpad by click it on Docker:

  2. 2
    Step 2:

    Long press the program icon that you want to get rid of on your Mac for 2-3 seconds > You'll see all these app icons get giggling > click the Delete button to uninstall this programs on your Mac.

macOS Program Removal Tips: By uninstalling this kind of programs from your Mac, you can redownload and reinstall them from App Store. So it's relatively the most safe way to uninstall your Mac programs. If you don't see the Delete icon when app icon giggling, move to Part 2.

Get Omni Remover To Clean Uninstall Programs On Mac

Part 2: How To Uninstall Unwanted Programs on Mac Catalina in Finder

If you find there is no Delete icon on the jiggling apps you want to uninstall, it means these programs were downloaded from Internet or installed via disc/thumb drive. If so, you can open Finder > on Finder sidebar, click Applications, then drag the apps you don't need to Trash. Or, simple click context menu for that app, and click Move To Trash to uninstall this program from your Mac.

Most macOS software programs run maintenance support scripts, generate running log, and store cache data at predefined intervals. So to uninstall programs on a Mac isn't as straightforward as you would think. When you drag an unwanted/outdated program from Applications Folder to Trash, the main app may be gone, but many associated files and folders are left behind. You can easily delete them since it's just a matter of locating the program support files and removing those as well.

How-To Steps To Uninstall Unwanted/Outdated Programs on Mac Catalina
  1. Step 1:

    Open Finder app on your Mac > Applications > Find the programs that you want to remove:

  2. 2
    Step 2:

    Right click the program icon > Click Move To Trash to delete this program on your Mac:

  3. 3
    Step 3:

    Open Finder > in Menu, click Go > enter ~/Library:

  4. 4
    Step 4:

    Go inside of these application support data folders and search/delete for any files that are associated with the programs you want to uninstall: Application Support Caches Containers Frameworks Logs Preferences Saved Application State WebKit

Get Omni Remover To Clean Uninstall Programs On Mac

Part 3: How To Uninstall Programs on Mac Catalina Using Command Line

Uninstalling programs from Mac through Command Line/Terminal is, in most cases, for advanced Mac users who have advanced knowledge of Mac OS X. Only if you are Command Line expert and know exactly what you are doing, then you can have a try with these steps to remove your programs completely on a Mac. Don't Try this if you don't fully understand the syntax used in Command Line (How To Uninstall Xcode Command Line Tool).

How-To Steps To Uninstall Unwanted Programs on Mac Using Command Line
  1. Step 1:

    Trash the known application program files from your Mac by following steps mentioned above > Open Terminal:

  2. 2
    Step 2:

    Make sure you're logging in your Mac with Admin account > Use this syntax to find remnant components mdfind -name [application name]:

  3. 3
    Step 3:

    Remove associated files from system locations with rm: sudo rm -rf /Whatever > Repeat as necessary with associated component files returned by mdfind:

Get Omni Remover To Clean Uninstall Programs On Mac

Part 4: How To Uninstall Programs on Mac Catalina Using Omni Remover

Uninstalling software on Mac OS X is generally simple and straightforward, as most programs don't run background components or alter system settings files (like the Registry on Windows). However, in rare cases, if you want to remove an old, malfunctioning or corrupt program, reinstall a software to fresh register number or you need to free up space on your Mac, you hardly get a satisfied without the help from third party but professional Uninstaller Apps.

Omni Remover is what you need. This neat and agile Mac App Uninstaller program aims to ease up the pain in macOS program uninstalling and cleaning. With it, you can easy remove unwanted apps by dragging-n-dropping, while the extraordinary part is, it will automatically start scanning app leftovers, remaining caches, orphaned or corrupt junks, so as to give you complete Mac App Uninstalling solution.

How-To Steps To Uninstall Unwanted Programs on Mac Using Omni Remover
  1. Step 1:

    Free Download Omni Remover on your Mac (Compatible with all recent macOS like macOS Catalina, Mojave, High Sierra, etc.) > Open Omni Remover.

    How To Uninstall Programs on Mac Step 1
  2. Step 2:

    Choose App Uninstall in Omni Remover > Select the program you want to delete > Check the basic information, such as program version number, developer, app size (Take Chrome as an example, original install space is 403.6MB), etc.

    How To Uninstall Programs on Mac Catalina Step 2
  3. Step 3:

    Click Scan to browse program cache junk, downloaded support files, and all other related remnants.

    How To Uninstall Programs on Mac Catalina Step 3
  4. Step 4:

    Omni Remover will scan all this program related app junk on macOS system > After a second, you can check how much storage space (2.2GB on our end) could be reclaimed by removing this bloated program from your Mac > click Clean to continue:

    How To Uninstall Programs on Mac Step 4
  5. Step 5:

    After a few seconds, Omni Remover will finish uninstalling programs from your Mac.

    How To Uninstall Programs on Mac Step 5

Get Omni Remover To Clean Uninstall Programs On Mac

Part 5: More Helpful macOS Programs Removal Tips

A software program on macOS can hardly working smoothly without generating cache, cookie and other temporary application files. So it's recommended to get an expert Mac App Cleaner and Uninstaller software to keep your mac running fast and light. Get impressed by the Omni Remover cleaning result? Check all Mac App Cleaning and Uninstalling features in Omni Remover.

General Tips for Freeing Up Space on Mac:

  • Manage Program Extentions and Plug-ins: Many common software programs are open sourced, freely for getting patched and expanded. You can only solve these storage problems by fully removing these bloated programs on your Mac.
  • Clear cache files on Mac: Average software program may contain 1~3GB cache. Various accumulated junk can take residence on your system over time.
  • Force uninstall stubborn programs: To uninstall rogue programs would be harder than you think, such as CleanMyMac, Kaspersky or alike. Omni Remover would be your best Malware Removal tool.
  • Reclaim free storage by deleting Xcode/iTunes cache junk: With new Cache Cleaner feature for particular programs, like Xcode/iTunes, you can clear a variety of caches, which can reclaim gigabytes of free space on Mac.
  • Omni Remover, uninstall App Programs on Mac in 1-Click.

    100% Free & Secure Download

    Unless the program you just uninstalled is downloaded from App Store, otherwise, the removal of your apps would be permanent. So alway make sure you can source of setup file for your removed apps, or create a backup before uninstalling. At last, we recommend you to download Omni Remover to start completely uninstalling Google Chrome from your Mac. Free Download >

    Mac Command Line Tools


    Omni Remover

    Mac Command Line Basics

    Requirements: OS X 10.8+ , 13.1Mb free space
    Version 3.2.1 (January 27, 2020) Support macOS Catalina Category: Mac Uninstaller

    Mac Install Command Line

    More Mac App Cleaner and Uninstaller Tips

    Install Software On Mac Using Command Line Mac

    Tags: Uninstall Office 2011 MacUninstall FirefoxUninstall Kaspersky MacUninstall MacKeeperUninstall Google Earth MacUninstall Steam MacUninstall Adobe Flash MacUninstall Dropbox MacUninstall Skype MacUninstall Teamviewer MacUninstall Sophos Antivirus MacUninstall Norton MacUninstall Soundflower MacUninstall WinZip Mac