Linux Terminal 201: Installing and Updating Packages - HakTip 149

Поделиться
HTML-код
  • Опубликовано: 20 окт 2024

Комментарии • 83

  • @andywoolley5954
    @andywoolley5954 7 лет назад +5

    I see a whole bunch of comments about apt-get being outdated. It's not yet obsolete and still works with many Debian distros. kudos for the tips and videos from Hak5. Thank you Shannon / Darren and the rest of the team!

    • @ShannonMorse
      @ShannonMorse 7 лет назад +6

      I've already recorded another episode about apt vs apt-get, but unfortunately a lot of folks think I didn't catch the memo from like 2014. lol. Sorry guys, can't fit all that info into one episode, so I'm starting with apt-get. Next ep on apt airs later this month.

    • @andywoolley5954
      @andywoolley5954 7 лет назад

      Shannon Morse I still use apt-get and ifconfig (still running an old Kali installl on one of my boxes).

  • @TheSkogemann
    @TheSkogemann 7 лет назад +11

    apt-get and apt-cache is obsolete.
    The commands are:
    apt update
    apt install [packagename]
    apt search [packagename]
    apt autoremove (Removes packages no longer needed)
    apt upgrade (Upgrades installed packages)
    apt dist-upgrade (Upgrades installed packages and dependencies, also newer linux versions)
    Remember that you can add -y to skip the [Y/n] part of the installation

  • @mauriciobailey4725
    @mauriciobailey4725 5 лет назад +1

    Thank you so much! I'm brand new to Linux and had not idea how idea how to get started. At least now I know how to download packages.

  • @hdaouihakim
    @hdaouihakim 7 лет назад +1

    Being a new user in ubuntu i obviously don't mange my updates with the terminal... Because there is an update manager who 's gonna do it better than me (i think). Keep up the good work, love your videos.

    • @weirdscix
      @weirdscix 7 лет назад +3

      yeah but in a terminal you can update everything at once with one line:
      sudo apt update && sudo apt upgrade -y

    • @hdaouihakim
      @hdaouihakim 7 лет назад +1

      thank you i am going to take a try.

  • @dastanharris
    @dastanharris 5 лет назад +1

    You have an amazing contents for beginner, thank you and keep em coming.

  • @smythie08
    @smythie08 7 лет назад +2

    thanks snubs, cleared a few things up for me!

  • @JimGilsinn
    @JimGilsinn 7 лет назад +3

    For apt-cache search, you don't need to do that as root, so sudo is not required. The cached list is publicly accessible. (You still need to use root to update the cached list, though, with sudo apt-get update.)

  • @elumlegnaneshwar8657
    @elumlegnaneshwar8657 3 года назад +1

    Could you please tell me what happens if we run Multiple upgrading software using mxrepo (mx-linux)

  • @genvacartel3296
    @genvacartel3296 6 лет назад

    Thanks for your Linux Hak5 tips truly When You have great OS Systems to Manually Upgrade by Terminal You Could not be in any way waiting on Automatic Updates is much more the reason why I enyoy my Linux mint and Ubuntu Great RUclips Channel 👌

  • @rizkiaprita
    @rizkiaprita 6 лет назад

    her voice is somehow relaxing.
    feels like listening to asmr stuff

  • @kittiecommittee139
    @kittiecommittee139 7 лет назад +1

    Just got home from work and this is the first thing - besides the nasty mcdonalds that I just ate - that I see. Nice!

  • @ejohnfel
    @ejohnfel 7 лет назад +1

    I do updates regularly using a custom bash function that I add to every .bashrc in all my accounts. It is somewhat package manager agnostic (ie. It figures which package manager is present, then uses it). It also takes options for rebooting or halting when complete. It can also be run from a cron job and supplied with an option to accept the default's for packages with prompts... but I don't recommend putting that in a cron job... know your changes before accepting the defaults automatically first.

  • @smellyfis
    @smellyfis 7 лет назад +21

    I thought the Debian based distros were trying to get away from `apt-get` and just use `apt`

    • @0stre
      @0stre 7 лет назад +2

      apt is much simplier, but im still using apt-get dunno why

    • @DanStarktheReal
      @DanStarktheReal 7 лет назад

      Not sure about that, but as noted in my comment above, if you install 'apt-utils', you can simply use 'apt'.

    • @eric7dev
      @eric7dev 7 лет назад +1

      imo it's just a matter of choise, personally use dpkg and apt-get (cuz old habits) indistinctively...

    • @RedNineAu
      @RedNineAu 7 лет назад

      This is basically right. I've been using apt for a while, because lazy so less typing, but there was something I needed to do a week or two ago that needed apt-get. I don't remember what it was. Something a little obscure, though.
      So basically apt for 99% of things and apt-get when apt doesn't work.

    • @MegaKrustyman
      @MegaKrustyman 7 лет назад +5

      Yes indeed, I can't believe I only discovered this a few days ago!
      apt install gives you a nice progress bar, apt search is so much quicker to type without the hyphen (and always forgetting it's apt-cache, not apt-get).
      However, you do need to keep using apt-get in scripts and cron jobs!
      cron is not interactive, so all that progress bar business doesn't work in cron and can lead to errors.

  • @tayyabnaseem182
    @tayyabnaseem182 7 лет назад

    I'm very big fan of you. Miss your Teaching style is very brilliant & Awesome. Very knowledgefull video of bash bunny(Pin drive).

  • @andywoolley5954
    @andywoolley5954 7 лет назад +2

    apt-get still works. don't yield to those that don't realise apt-get has not yet been obsoleted. ifconfig still works have not yet fully moved to ip addr show.

  • @DanStarktheReal
    @DanStarktheReal 7 лет назад +1

    sudo apt-get install -y apt-utils
    After that, you only need to do sudo apt install _____ and you get a nice little Progress bar. Hope this helps. =)

  • @DAVIDGREGORYKERR
    @DAVIDGREGORYKERR 7 лет назад

    You mean SYNAPTIC Package Manager., What about about

  • @Anon-tj7qb
    @Anon-tj7qb 7 лет назад

    Dont forget apt-get autoremove to get rid of unused dependencies. Looks like there are many extra old kernels just hanging about there taking up space.

  • @tpenn2
    @tpenn2 6 лет назад

    Love your show!

  • @themedmidou
    @themedmidou 6 лет назад

    Please help me the following command does not work : sudo apt install dsnutils, E: Unable to locate package dsnutils

  • @daleh8187
    @daleh8187 5 лет назад

    A command question please- to get Firefox UPDATES, would the command for Mint be- sudo apt-get firefox updates.deb or do I leave off the .deb? Thanks, and keep making videos

  • @baiqing
    @baiqing 7 лет назад +15

    pacman and AUR yaourt FTW

    • @orochiokada
      @orochiokada 7 лет назад +1

      Andy Lyu yaourt seems a little sketchy. checking the pkg file and installing it manually might be worth it considering anyone can submit to the AUR.

    • @mrmiggiman
      @mrmiggiman 7 лет назад +1

      When you use yaourt you can edit the pkg file, and install file before installingit, so you can be sure what the file does.

    • @baiqing
      @baiqing 7 лет назад

      You can always check the package installation detials and the PGP signitures of the maintainer, basiclly it is similar to the dev of the Linux Kernel in a sense.

    • @username65585
      @username65585 7 лет назад +2

      Yaourt sources the pkg file before you get a chance to read them. Use pacaur instead.

    • @sarundayo
      @sarundayo 7 лет назад +1

      username +1 for pacaur

  • @nevillethomas7321
    @nevillethomas7321 8 месяцев назад

    P.S. I normally update and install through my linux terminal manually , but i seem to have a problem authorizing with my password or username. Since corrected the main errors like just mentioned the username wont execute to update or install !

  • @thevinve1593
    @thevinve1593 7 лет назад +1

    Can you get a link to bitbucket and then when you shout it out, ask to click the link? I feel that if you set it up with bitbucket, you could get a deal that increases your ad revenue based on the amount of people view the link you provide.

    • @ShannonMorse
      @ShannonMorse 7 лет назад

      I don't have a referral link to share, sorry!

  • @JoshuaPritt
    @JoshuaPritt 7 лет назад

    All my linux boxes are raspberry Pi with Raspbian. So apt-get all the time!

  • @aashimagaba27
    @aashimagaba27 8 месяцев назад

    I am getting an Error: Unable to locate package
    What should I do?

  • @cybermaxpower
    @cybermaxpower 7 лет назад +1

    why not apt ? apt-get is old in Debian base distro's

  • @kd1s
    @kd1s 7 лет назад

    Meanwhile on RHEL, CENTOS etc. yum is the tool, and the packages have various extensions. For example three's gcc-c++.i686 or similar.
    And yeah I loved dpkg on Debian. Alas, no such animal on RHEL/CENTOS which is my world right now. But there are RPM's.

  • @adityaex6474
    @adityaex6474 7 лет назад +1

    I saw "aptitude" being used as package installer at few places.

  • @sarundayo
    @sarundayo 7 лет назад

    @Shannon: is that a Dell XPS?

  • @saosing04
    @saosing04 7 лет назад

    Whats the small keyboard shes uses on the right of the laptop?

    • @FaithfulFrets
      @FaithfulFrets 7 лет назад

      Daniel Haulsey teleprompt controller

  • @weirdscix
    @weirdscix 7 лет назад

    I prefer to use APT rather than apt-get these days, it shows more info if installing multiple packages etc

  • @matttheman4331
    @matttheman4331 7 лет назад

    Very helpful

  • @XiaoGuoan
    @XiaoGuoan 7 лет назад

    Can anyone tell me what's the other name for the dash symbol? I heard Shannon saying tek or something like that.

    • @AdamMagness
      @AdamMagness 7 лет назад

      tack tack (like thumb tack)

    • @XiaoGuoan
      @XiaoGuoan 7 лет назад

      Adam Magness Thanks :)

  • @djsensacion7
    @djsensacion7 7 лет назад

    flatpak FOR THE WIN !!!!!!

  • @hwinangkoso
    @hwinangkoso 5 лет назад

    Why is there ‘hier niet poepen’ in the background?

  • @asadmehar6809
    @asadmehar6809 7 лет назад +1

    how to recovery

  • @JPHx1312
    @JPHx1312 7 лет назад +3

    sudo pacman -Syyu

  • @lightarmanov6266
    @lightarmanov6266 7 лет назад

    what if you don't have sudo installed lol ( su first then install then exit )

  • @hankseaman5035
    @hankseaman5035 7 лет назад

    Manual update on Ubuntu, crontab on freebsd.

  • @3117master
    @3117master 7 лет назад

    No package or terminal jokes. I'm so mature.

  • @ppsghost
    @ppsghost 4 года назад

    Can I know how to become super user

  • @Shmoozo55
    @Shmoozo55 7 лет назад

    TOTORO! YES!!

  • @RicondaRacing
    @RicondaRacing 4 года назад

    Linux users love CLI

  • @pikami
    @pikami 7 лет назад

    I update my packages using the command "emerge -uDU --with-bdeps=y @world"

    • @killistan
      @killistan 7 лет назад +1

      I always add -av to that and skip the build dependencies until everything else is updated. ...sometimes --with-bdeps introduces dependency conflicts that you otherwise don't have to deal with right away, and which might go away on their own if you just update the rest of your system first. I also usually substitute -U with -N unless the -N causes an unnecessary firefox rebuild or something awful like that, but -U is a sane choice.
      And I can't be bothered to type the '@' symbol. While I realize that world is a set, it still works fine without it, for legacy reasons I guess ;)

  • @saibot293
    @saibot293 5 лет назад

    I want those stickers

  • @khetalshende4091
    @khetalshende4091 3 года назад

    I love CLI more than GUI

  • @kushalban6682
    @kushalban6682 7 лет назад

    I want those stickers.😂😂😂

  • @AlvinWilliamson
    @AlvinWilliamson 7 лет назад +1

    Pacaur -Syu

  • @nathanmorningstar5254
    @nathanmorningstar5254 7 лет назад

    still use apt-get update/ upgrade

    • @nathanmorningstar5254
      @nathanmorningstar5254 7 лет назад

      Max Luchs update updates the programs and packages on your system. upgrade allows you to update they system packages and software

  • @knealfo
    @knealfo 7 лет назад

    shiny coat

  • @canadianaja8030
    @canadianaja8030 7 лет назад +1

    Why would anyone unless you are are a Linux nerd, coder, developer etc want to go through this stuff in order to use a computer. I have used Linux for a number of years and it seems the technology used in Linux has more or less remained the same. There is no "wow" factor for me. I bit the bullet and went back to Windows. I got my shiny new Windows 10 and it's downright awesome. Plug and play...works! Games and programs...works! New hardware click! works. The installation was a breeze. Now I can use my iTunes and Microsoft Office with no problems. I just want to use my computer without it taking 3 times longer than a Windows machine--no more "apt get" for me. Peace.

  • @arasantamil179
    @arasantamil179 7 лет назад

    sister super

  • @utf8redactedcharacters
    @utf8redactedcharacters 7 лет назад

    guys I can't watch the video, I forgot to install html5

  • @MasterOfDisasterInAl
    @MasterOfDisasterInAl 7 лет назад

    Totoro ^~^

  • @haitamhamidi1771
    @haitamhamidi1771 7 лет назад

    hi sister just something us Kali or black arch Kali . people don't like abouto

  • @Dj-Solarjazz
    @Dj-Solarjazz 4 года назад

    what

  • @asadmehar6809
    @asadmehar6809 7 лет назад +1

    hi mam my Facebook password and email hacked today plz help

  • @boltspeedman21
    @boltspeedman21 7 лет назад

    i just wanted to say.. you like hot with glasses 😎

  • @killistan
    @killistan 7 лет назад

    Apt based distros aren't normally what I use for myself, but when I install an os for someone else I tend to go with one of those. So the other day I was trying to uninstall something and didn't notice that it decided the desktop environment was nolonger necessary... At least I did catch it in time and was able to reinstall everything without the person noticing. It's handy that apt-get gives you a list of what it's just uninstalled.

  • @ysgdhio
    @ysgdhio 7 лет назад

    10 PRINT HAKTIP ;
    20 GOTO 10
    ...will fill the screen with zeroes.
    Try this instead:
    10 PRINT "HAKTIP",
    20 GOTO 10