DEV Community

Rahul
Rahul

Posted on

how to install git in ubuntu with cmd

sudo apt update

sudo apt install git

rudi@rudi:~$ sudo apt install git
Reading package lists... Done
Building dependency tree

Reading state information... Done
The following packages were automatically installed and are no longer required:
binutils-common cpp-7 diffstat gettext gir1.2-gtksource-3.0 gir1.2-mutter-2
gnome-software-common gnome-user-guide gsfonts imagemagick-6-common
intltool-debian iputils-arping libalgorithm-diff-perl
libalgorithm-merge-perl libappstream-glib8 libapt-pkg-perl
libarchive-zip-perl libart-2.0-2 libasync-mergepoint-perl libatomic1
libb-hooks-op-check-perl libbinutils libboost-filesystem1.65.1
libboost-iostreams1.65.1 libboost-system1.65.1 libbrlapi0.6 libc-dev-bin
libcamel-1.2-61 libcgi-pm-perl libclass-xsaccessor-perl libclone-perl
libcpanel-json-xs-perl libcroco3 libctf0 libdevel-size-perl
libebook-contacts-1.2-2 libecal-1.2-19 libedataserver-1.2-23 libegl1-mesa
libexempi3 libexiv2-14 libfcgi-perl libfile-copy-recursive-perl
libfile-find-rule-perl libfuture-perl libgail-3-0 libgdbm5 libgmime-3.0-0
libgnome-desktop-3-17 libgtksourceview-3.0-1 libgtksourceview-3.0-common
libgutenprint-common libgutenprint2 libgutenprint9 libgweather-3-15
libhogweed4 libicu60 libio-pty-perl libip6tc0 libisc-export169 libisl19
libitm1 libjson-maybexs-perl liblinux-epoll-perl liblist-compare-perl
libllvm9 liblouis14 liblouisutdml8 liblqr-1-0 liblsan0 libmozjs-52-0
libmutter-2-0 libnet-domain-tld-perl libnet-ip-perl libnetpbm10 libnettle6
libntfs-3g88 libnumber-compare-perl liboauth0 libpackage-stash-xs-perl
libpath-tiny-perl libperl4-corelibs-perl libperl5.26 libperlio-gzip-perl
libplymouth4 libpoppler73 libprotobuf10 libpython2.7-minimal
libpython3.6-minimal libqpdf21 libquadmath0 libreadonly-perl
libref-util-perl libref-util-xs-perl libsub-exporter-progressive-perl
libsub-identify-perl libsub-quote-perl libtest-fatal-perl
libtest-refcount-perl libtext-glob-perl libtext-levenshtein-perl libtsan0
libubsan1 libunicode-utf8-perl libusbmuxd4 libvariable-magic-perl libvpx5
libwayland-egl1-mesa libxapian30 libxml-namespacesupport-perl
libyaml-libyaml-perl manpages-dev netpbm nplan patchutils
printer-driver-gutenprint python3-asn1crypto python3-oauth
python3-zope.interface qpdf t1utils ubuntu-system-service
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk
gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 5,464 kB of archives.
After this operation, 38.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y

after few take time...

Top comments (0)