Mac os install apt get install

Содержание
  1. Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?
  2. 5 Answers 5
  3. Background
  4. Warning
  5. derhuerst / intro.md
  6. This comment has been minimized.
  7. alhadhrami commented Nov 9, 2017
  8. This comment has been minimized.
  9. rgnest commented Jan 6, 2018 •
  10. This comment has been minimized.
  11. mithlesh4257 commented Jan 7, 2018
  12. This comment has been minimized.
  13. elseagle commented Jan 18, 2018
  14. This comment has been minimized.
  15. Kaarthick912 commented Mar 5, 2018
  16. This comment has been minimized.
  17. Aztechtcs commented Mar 11, 2018
  18. This comment has been minimized.
  19. Joshua56 commented Mar 30, 2018
  20. This comment has been minimized.
  21. Joshua56 commented Mar 30, 2018
  22. This comment has been minimized.
  23. reddyvenu commented Apr 10, 2018
  24. This comment has been minimized.
  25. imad-bouramana commented Apr 29, 2018
  26. This comment has been minimized.
  27. webbertakken commented Aug 15, 2018 •
  28. This comment has been minimized.
  29. oscrx commented Sep 13, 2018 •
  30. This comment has been minimized.
  31. Princewillsarlex commented Nov 15, 2018
  32. This comment has been minimized.
  33. adkumar321 commented Jan 18, 2019
  34. This comment has been minimized.
  35. DuncantheeDuncan commented Mar 9, 2019 •
  36. This comment has been minimized.
  37. NetJayNoob commented Mar 19, 2019
  38. This comment has been minimized.
  39. Anthomy1 commented May 30, 2019
  40. This comment has been minimized.
  41. Anthomy1 commented May 30, 2019
  42. This comment has been minimized.
  43. virgilwashere commented Jun 4, 2019
  44. Install git on Ubuntu
  45. This comment has been minimized.
  46. virgilwashere commented Jun 4, 2019
  47. This comment has been minimized.
  48. sagynov commented Jun 16, 2019
  49. This comment has been minimized.
  50. Knlsharma commented Jul 22, 2019
  51. This comment has been minimized.
  52. Lucifer8759 commented Jul 23, 2019
  53. This comment has been minimized.
  54. mark-nirdesh commented Dec 17, 2019
  55. This comment has been minimized.
  56. ocBruno commented Feb 14, 2020
  57. This comment has been minimized.
  58. CyberChick111 commented Mar 6, 2020
  59. This comment has been minimized.
  60. Phontera commented Mar 31, 2020
  61. This comment has been minimized.
  62. gprakarsh commented Aug 10, 2020
  63. This comment has been minimized.
  64. ASCassinda commented Aug 25, 2020
  65. This comment has been minimized.
  66. Cyber-Guy24 commented Sep 3, 2020
  67. This comment has been minimized.
  68. wajeehas commented Sep 13, 2020
  69. This comment has been minimized.
  70. derhuerst commented Sep 14, 2020
  71. This comment has been minimized.
  72. mahfudivan commented Sep 23, 2020
  73. This comment has been minimized.
  74. temoke-levelops commented Nov 5, 2020
  75. This comment has been minimized.
  76. mavaddat commented Dec 19, 2020
  77. This comment has been minimized.
  78. AssefaDemeke12 commented Dec 26, 2020
  79. This comment has been minimized.
  80. Poojap19create commented Mar 26, 2021
  81. This comment has been minimized.
  82. mavaddat commented Mar 29, 2021 •

Why is the apt-get function not working in the terminal on Mac OS X v10.9 (Mavericks)?

I was watching this, and, as you can see, the first command I am told to put in is:

When I do this, it outputs:

I have no idea why this is the case.

How can I resolve this so I am following the tutorial correctly?

5 Answers 5

Mac OS X doesn’t have apt-get . There is a package manager called Homebrew that is used instead.

This command would be:

Use Homebrew to install packages that you would otherwise use apt-get for.

The page I linked to has an up-to-date way of installing homebrew, but at present, you can install Homebrew as follows:

Type the following in your Mac OS X terminal:

After that, usage of Homebrew is brew install

Читайте также:  Linux окно для терминалов

One of the prerequisites for Homebrew are the XCode command line tools.

Background

A package manager (like apt-get or brew ) just gives your system an easy and automated way to install packages or libraries. Different systems use different programs. apt and its derivatives are used on Debian based linux systems. Red Hat-ish Linux systems use rpm (or at least they did many, many, years ago). yum is also a package manager for RedHat based systems.

Alpine based systems use apk .

Warning

As of 25 April 2016, homebrew opts the user in to sending analytics by default. This can be opted out of in two ways:

Setting an environment variable:

  1. Open your favorite environment variable editor.
  2. Set the following: HOMEBREW_NO_ANALYTICS=1 in whereever you keep your environment variables (typically something like

/.bash_profile )
Close the file, and either restart the terminal or source

Running the following command:

the analytics status can then be checked with the command:

Источник

derhuerst / intro.md

Installing Git – the easy way

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Choose one of the following options.

Determine on which Linux distribution your system is based on. See List of Linux distributions – Wikipedia for a list. Most Linux systems – including Ubuntu – are Debian-based.

Debian-based linux systems

Open a terminal window. Copy & paste the following into the terminal window and hit Return . You may be prompted to enter your password.

You can use Git now.

Red Hat-based linux systems

Open a terminal. Copy & paste the following into the terminal window and hit Return . You may be prompted to enter your password.

You can use Git now.

Homebrew […] simplifies the installation of software on the Mac OS X operating system.

Copy & paste the following into the terminal window and hit Return .

You will be offered to install the Command Line Developer Tools from Apple. Confirm by clicking Install. After the installation finished, continue installing Homebrew by hitting Return again.

Step 2 – Install Git

Copy & paste the following into the terminal window and hit Return .

You can use Git now.

Installing Git on Windows

  1. DownloadGit from Git for Windows and install it.

This comment has been minimized.

Copy link Quote reply

alhadhrami commented Nov 9, 2017

Wrong link in ‘intro.md’ for «Instructions for Windows». I was going to create a pull request, but then remembered that doesn’t exist in gist.

This comment has been minimized.

Copy link Quote reply

rgnest commented Jan 6, 2018 •

You shoud before do «cd» the directrory should be yours home. Or will have error.
I mean macos.

This comment has been minimized.

Copy link Quote reply

mithlesh4257 commented Jan 7, 2018

Git is not installing in Ubuntu. Please help!

This comment has been minimized.

Copy link Quote reply

elseagle commented Jan 18, 2018

@mithlesh4257 try
sudo apt-get update then sudo apt-get upgrade followed by sudo apt-get install git

This comment has been minimized.

Copy link Quote reply

Kaarthick912 commented Mar 5, 2018

sudo yum upgrade

I ran this command and it removed all existing users. It upgraded like 450 packages and removed some users. Anybody know why this happened ?

This comment has been minimized.

Copy link Quote reply

Aztechtcs commented Mar 11, 2018

same problem here

This comment has been minimized.

Copy link Quote reply

Joshua56 commented Mar 30, 2018

I am having the same problem in my linux mint

This comment has been minimized.

Copy link Quote reply

Joshua56 commented Mar 30, 2018

zenity : Depends: libpango-1.0-0 (>= 1.14.0) but it is not going to be installed
Depends: zenity-common (= 3.18.1.1-1ubuntu2) but it is not going to be installed
E: Unmet dependencies. Try ‘apt-get -f install’ with no packages (or specify a s

This the error of the code

This comment has been minimized.

Copy link Quote reply

reddyvenu commented Apr 10, 2018

same problem here

This comment has been minimized.

Copy link Quote reply

imad-bouramana commented Apr 29, 2018

try this repository

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

This comment has been minimized.

Copy link Quote reply

webbertakken commented Aug 15, 2018 •

I used this as a source for PracticalNotes — Homebrew.md because it is very efficient.

This comment has been minimized.

Copy link Quote reply

oscrx commented Sep 13, 2018 •

Wrong link in ‘intro.md’ for «Instructions for Windows». I was going to create a pull request, but then remembered that doesn’t exist in gist.

Exactly this 😀
But thanks for the guide.

This comment has been minimized.

Copy link Quote reply

Princewillsarlex commented Nov 15, 2018

This comment has been minimized.

Copy link Quote reply

adkumar321 commented Jan 18, 2019

sudo apt-get install aptitude

sudo aptitude install git

This comment has been minimized.

Copy link Quote reply

DuncantheeDuncan commented Mar 9, 2019 •

Thanks it now installed
But Git-it command doesn’t work and git-it verify
So what the next step please help
I’m using Kali Linux

This comment has been minimized.

Copy link Quote reply

NetJayNoob commented Mar 19, 2019

I am having issues with setting the port. When I type ‘set port 80’ I get back as an error: «you can’t set option ‘port’. Available options: [‘target’, ‘http_port'» etc. will this affect my check runs later?

This is on Kali Linux, and is after ‘set target 192.168. )

This comment has been minimized.

Copy link Quote reply

Anthomy1 commented May 30, 2019

Thanks it now installed
But Git-it command doesn’t work and git-it verify
So what the next step please help
I’m using Kali Linux

This comment has been minimized.

Copy link Quote reply

Anthomy1 commented May 30, 2019

I need help.
I’m using Kali Linux.

This comment has been minimized.

Copy link Quote reply

virgilwashere commented Jun 4, 2019

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

Install git on Ubuntu

The most current stable version of Git for Ubuntu.

For release candidates, go to https://launchpad.net/

hub : use github from the command-line
hub is an extension to command-line git that helps you do everyday GitHub tasks without ever leaving the terminal

Hope that helps someone.

This comment has been minimized.

Copy link Quote reply

virgilwashere commented Jun 4, 2019

⚠️ Any additional repositories added to the Kali sources.list file will most likely BREAK YOUR KALI LINUX INSTALL.

If this doesn’t do it, I’d be real careful now.

This comment has been minimized.

Copy link Quote reply

sagynov commented Jun 16, 2019

This comment has been minimized.

Copy link Quote reply

Knlsharma commented Jul 22, 2019

Use this command to check your current Git version: git —version

This comment has been minimized.

Copy link Quote reply

Lucifer8759 commented Jul 23, 2019

I need help.
I’m using Kali Linux.

This comment has been minimized.

Copy link Quote reply

mark-nirdesh commented Dec 17, 2019

I need help.
I’m using Kali Linux.

why use shell ?
use sudo apt-get install git

This comment has been minimized.

Copy link Quote reply

ocBruno commented Feb 14, 2020

Just a heads up!
The Instructions for Windows is linking to the linux instructions

This comment has been minimized.

Copy link Quote reply

CyberChick111 commented Mar 6, 2020

@mithlesh4257 try
sudo apt-get update then sudo apt-get upgrade followed by sudo apt-get install git

This one worked!! Thanks

This comment has been minimized.

Copy link Quote reply

Phontera commented Mar 31, 2020

It worked! Thank you.

This comment has been minimized.

Copy link Quote reply

gprakarsh commented Aug 10, 2020

The link for the Mac Download is outdated. This is the one that should be used —
/bin/bash -c «$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)»

This comment has been minimized.

Copy link Quote reply

ASCassinda commented Aug 25, 2020

This comment has been minimized.

Copy link Quote reply

Cyber-Guy24 commented Sep 3, 2020

Thanks mark-nirdesh that worked for me as well

This comment has been minimized.

Copy link Quote reply

wajeehas commented Sep 13, 2020

I have tried installing homebrew via mac os terminal, but it keeps asking me for a password. does anyone know which password this is? it comes up as a key sign.

This comment has been minimized.

Copy link Quote reply

derhuerst commented Sep 14, 2020

I have tried installing homebrew via mac os terminal, but it keeps asking me for a password. does anyone know which password this is? it comes up as a key sign.

It looks like it uses sudo to install itself to a specific location on your computer; sudo requires your password. You will have to put your macOS user’s password.

This is badly designed, it should actually explain why it is using sudo .

This comment has been minimized.

Copy link Quote reply

mahfudivan commented Sep 23, 2020

I have tried installing homebrew via mac os terminal, but it keeps asking me for a password. does anyone know which password this is? it comes up as a key sign.

your laptop password, I use a macbook, I also enter my laptop password

This comment has been minimized.

Copy link Quote reply

temoke-levelops commented Nov 5, 2020

Works for Mac! Where do I give thumbs up?

This comment has been minimized.

Copy link Quote reply

mavaddat commented Dec 19, 2020

why use shell ?
use sudo apt-get install git

They (incorrectly) copied the entire markdown-laden code-block and pasted that into the bash terminal, which of course bash cannot interpret as a command. Do not paste the markdown (e.g., «`shell ) into bash — that part is just for formatting the code on GitHub.

This comment has been minimized.

Copy link Quote reply

AssefaDemeke12 commented Dec 26, 2020

git hub setup for linux

This comment has been minimized.

Copy link Quote reply

Poojap19create commented Mar 26, 2021

I am getting an error while installing git for UBUNTU Can anybody help please

This comment has been minimized.

Copy link Quote reply

mavaddat commented Mar 29, 2021 •

I am getting an error while installing git for UBUNTU Can anybody help please

Your Ubuntu version is no longer maintained. You need to update your distribution to a version that is within its support lifetime. For example, try using this upgrade combination:

Источник

Читайте также:  What is windows live account
Оцените статью