0

I am writing script to run SU commands programmatically to do various operations. But, All the commands created through my program is not working. Then, i tried those commands in Terminal (Mac os x) by typing it, but it gives the following result,

sudo: apt-get: command not found

Could someone please advise me, why is this error coming up, how can i make these working?

Stella
  • 1,728
  • 5
  • 41
  • 95
  • That command doesn't seem to exist on OSX. See: http://stackoverflow.com/questions/3554271/what-is-the-equivalent-of-aptitude-in-mac-osx (this provides information to install it) – drew_w Dec 13 '13 at 02:22
  • apt-get isn't installed in osx, typically osx users use brew – spartygw Dec 13 '13 at 02:23
  • I am trying to follow noVnc feature using this link, "http://kanaka.github.io/noVNC/screenshots.html" So in this link, they are asking to use sudo commands, for example: sudo apt-get install tightvncserver. What can i do now? – Stella Dec 13 '13 at 05:24

3 Answers3

2

Homebrew installs the stuff you need that Apple didn’t. install ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"

e.g : $ brew install wget

Benyamin
  • 54
  • 2
  • I am trying to follow noVnc feature using this link, "kanaka.github.io/noVNC/screenshots.html"; So in this link, they are asking to use sudo commands, for example: sudo apt-get install tightvncserver. What can i do now? – Stella Dec 13 '13 at 05:26
1

There's also MacPorts, and fink -- I also have homebrew, but also keep the others around for when I encounter things that one system has that the other doesn't.

hd1
  • 33,938
  • 5
  • 80
  • 91
  • I am trying to follow noVnc feature using this link, "kanaka.github.io/noVNC/screenshots.html"; So in this link, they are asking to use sudo commands, for example: sudo apt-get install tightvncserver. What can i do now? – Stella Dec 13 '13 at 05:29
0

apt-get is unique to the Debian based operating systems. If you want a package manager for OSX, may I suggest homebrew

http://brew.sh

srquinn
  • 10,134
  • 2
  • 48
  • 54
  • I am trying to follow noVnc feature using this link, "kanaka.github.io/noVNC/screenshots.html"; So in this link, they are asking to use sudo commands, for example: sudo apt-get install tightvncserver. What can i do now? – Stella Dec 13 '13 at 05:26
  • Read the FAQ for TightVNC – unfortunately they do not support OSX at this time http://www.tightvnc.com/faq.php – srquinn Dec 13 '13 at 13:36