Equivalent of 'apt-get' command ?

Joined
Aug 3, 2010
Messages
5
Reaction score
0
Points
1
Hi,

On my good ol' Linux box, when I want to install an application using the command line, I use the
Code:
apt-get install name_of_package

command, which looks up a repository full of packages and downloads/installs the package I'm asking (.deb for Debian packages).

On a Mac (10.6.4), is there a way to install a package/application/command using one command line ? Right now, I must compile every applicaiton and it takes forever !
 
Joined
Jan 12, 2009
Messages
1,096
Reaction score
19
Points
38
Location
Prague, Czech Republic
Your Mac's Specs
2,4Ghz 15" unibody
What are you installing that you need to compile the application yourself?
Under Mac OS, you mostly download the application you find with google, mount the .dmg and copy the app to your Applications folder.
I know, it's completely different from the "linux-way"
 
Joined
Jul 2, 2007
Messages
3,494
Reaction score
204
Points
63
Location
Going Galt...
Your Mac's Specs
MacBookAir5,2:10.13.6-iMac18,3:10.13.6-iPhone9,3:11.4.1
On a side note, you can install Apple's Xcode and macports The MacPorts Project -- Home if like me, you have need to compile items on occasion. Macports allows you to add repos as you like to compile on your system.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I've never tried it but I've heard good things about Rudix. It's essentially a project in which they package Unix utilities for the Mac. You can download the whole package or individual utilities.
 
Joined
Feb 26, 2010
Messages
2,116
Reaction score
123
Points
63
Location
Rocky Mountain High, Colorado
Your Mac's Specs
1.8 GHz i7 MBA 11" OSX 10.8.2
Macports is what I use as well. After install it works pretty much like apt - except it compiles packages like Gentoo - but you get the picture.

Code:
port search <name of package>
port install <name of package>
port selfupdate
port help
 
Joined
Jan 12, 2009
Messages
1,096
Reaction score
19
Points
38
Location
Prague, Czech Republic
Your Mac's Specs
2,4Ghz 15" unibody
Good thing to point out ports!
 
Joined
Nov 19, 2006
Messages
1,781
Reaction score
81
Points
48
Location
York, UK
Your Mac's Specs
iMac: 5K 27” (2020), 3.3 GHz, 32Gb RAM. iPad2, iPad mini4, iPhone 13 Mini, Apple Watch SE
Can I just say that some of us here haven't a clue what this post is about. Would some kind soul like to educate us?
 
Joined
Jan 12, 2009
Messages
1,096
Reaction score
19
Points
38
Location
Prague, Czech Republic
Your Mac's Specs
2,4Ghz 15" unibody
Sawday, you can read up on the topic:
The MacPorts Project -- Home

For most people it's absolutely unneeded to install anything via ports.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I would have suggested Fink earlier but although the project is still alive, they have yet to provide a binary for Snow Leopard. If you can't provide a binary for an OS that is just over 9 month old, I have to question the project. On top of that, MacPorts is sort of supported by Apple as a project of Mac OS Forge (although packages built through MacPorts are not).
 
Joined
Feb 26, 2010
Messages
2,116
Reaction score
123
Points
63
Location
Rocky Mountain High, Colorado
Your Mac's Specs
1.8 GHz i7 MBA 11" OSX 10.8.2
Aye - I have fink installed on my machine as well but didn't suggest it as Macports seems more active - all the open source programs I have looked for have been available on Macports.

There is a lot of reading on the Macports page. To summarize - Macports is a system to deliver packages to your computer with dependencies. It is a type of package manager similar to Apt on a Debian system or RPM on a Red hat system. You basically point to a bunch of repositories that hold the packages. Then you request to install those packages from the repositories. So lets say I want to install vim - an open source text editor - I could search for MacVim or mac vim on google or I could

Code:
port search vim
port install vim
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top