What is the equivalent of aptitude in Mac OSX?
There isn't an equivalent out of the box.
You may want to take a look at MacPorts:
MacPorts, formerly called
DarwinPorts, is a package
management system that simplifies the
installation of software on the Mac OS
X and Darwin operating systems. It is
a free/open source software project to
simplify installation of other
free/open source software. Similar in
aim and function to Fink and the BSDs'
ports collections, DarwinPorts was
started in 2002 as part of the
OpenDarwin project, with the
involvement of a number of Apple Inc.
employees including Landon Fuller,
Kevin Van Vechten, and Jordan Hubbard.
http://en.wikipedia.org/wiki/MacPorts
http://www.macports.org/
Does the command aptitude upgrade perform a full-upgrade or a safe-upgrade on Debian?
As can be seen in the source-code (but not the docs), upgrade
is indeed an alias for safe-upgrade
:
else if(!strcasecmp(argv[0], "full-upgrade") ||
!strcasecmp(argv[0], "dist-upgrade"))
{
default_action = cmdline_upgrade;
// [...]
upgrade_mode = full_upgrade;
// [...]
resolver_mode = resolver_mode_full;
}
else if(!strcasecmp(argv[0], "safe-upgrade") ||
!strcasecmp(argv[0], "upgrade"))
{
default_action = cmdline_upgrade;
// [...]
upgrade_mode = safe_upgrade;
// [...]
resolver_mode = resolver_mode_safe;
}
Winlibre - An Aptitude-Synaptic for Windows. Would that be useful?
be sure to research previous efforts on this. Google turns up several similar/relevant efforts.
http://en.wikipedia.org/wiki/Package_management_system#Microsoft_Windows
http://windows-get.sourceforge.net
http://pina.plasmite.com
IIRC there was an rpm for windows at some point
Also I think there was some guy (who used to work at MS) in the news recently that basically is starting up a very similar project. I can't find a link to this now.
But anyway, yeah, it would be awesome if there was such a standard tool and repository.
Creating package in mac os x
There are several approaches for Mac installation.
Simplest: self-contained application (
Foo.app
). You put everything in a directory (in a particular hierarchy), give the directory the.app
extension, and ask the user to copy it into/Applications
. All necessary libraries and scripts should be included inside the directory. It is commonly distributed inside a.dmg
file, which is a disk image.Installer: Uses a
.pkg
archive, which will be opened by Apple's Installer. It has capability to install libraries in root-restricted areas (after asking the user for the password).Homebrew/Fink/MacPorts - open-source projects that provide functionality ranging from that of Debian's Aptitude to that of BSD's Ports. Authors write down recipes that the installer executes, which resolve dependencies and install necessary related packages. I believe Homebrew is now the most popular of these, with recipes being written in a Ruby DSL.
Related Topics
Examining C/C++ Heap Memory Statistics in Gdb
Why Do I Have to Use Bash -L -C Inside My Container
How to Use Iptables in Linux to Forward Http and Https Traffic to a Transparent Proxy
How to Find Files That Only Have Certain Permission for Owner
Displaying Webcam Video with Qt
Grep Files Based on Time Stamp
Aws-Ec2, How to Set Multiple Public Sites with Just One Instance
Bluetooth Low Energy: Use Bluez Stack as a Peripheral (With Custom Services and Characteristics)
Context Switch in Interrupt Handlers
Linux Configure/Make, --Prefix
Linux Memory Reporting Discrepancy
Check If Vt-D/Iommu Has Been Enabled in The Bios/Uefi
Bash Scripting - How to Set the Group That New Files Will Be Created With
Is There a Limit on Number of Tcp/Ip Connections Between MAChines on Linux