Linux Terminal 201: Apt vs Apt-Get - HakTip 151

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

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

  • @69dragons
    @69dragons 7 лет назад +7

    As always you are providing a nice bridge from novice to super geeky! Love it!

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

    This is why I like your show. There are a thousand things that I mean to look onto, and don't. The difference between apt and apt get is one; I see it, mean to study it, on forget it. Your show did it and at the right depth. Thanks

  • @MrROBOT-ht8vs
    @MrROBOT-ht8vs 7 лет назад +4

    I'm surprised there has not been mention of "&&" for example the first thing i do when i start a Terminal Session on my Kali VM is:
    apt-get update && apt-get upgrade with the -y trigger to keep it going with the YES/NO questions.
    Shannon HUGE FAN! and i enjoy all the shows.

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

    Still using good ol' aptitude...
    Thank you Shannon for another episode. Filming this one on your own rather than with two men... Funny gif that was.

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

      Every time I used aptitude it fucked my cache up and messed up the lock. Don't know how people love it.

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

      It should only hold a lock if it is left open, pushed to background via CRTL-Z, or if it died in the middle of package installation. (I've had more issues with apt-get imploding with broken dependencies, most of that goes away with updates or fixing branch locations when things get migrated in repositories)

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

      AmirAli Tn how do you manage to do that?
      I uses apt(8) with cli and when doing more advanced stuff, I start aptitude(8) in full screen text meny mode (start with aptitude(8) without arguments, remember q, +, - and _ commands)

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

    HIER NIET POEPEN A.U.B.
    I wasn't gonna do it, but now I am considering it.

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

      What does the AUB stand for?

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

      A.U.B. is an abbreviation for 'alstublieft'. In this context it means 'please', in the context of handing something to someone it means 'here you go'.
      For the curious. Fully translated, and keeping to the imperative style, the sticker says: "Don't poop here, please."

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

      Thanx a lot :)

  • @EddieGjaltema
    @EddieGjaltema 7 лет назад +17

    You don't need sudo to search in apt or apt-get

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

      Or to list updates found, either.

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

      mhh.. my machine needs sudo for me to download ANY software, even updates, don't know what uses apt/ apt-get other than that.

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

      Use sudo anywhere, its good habits

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

    Thank you Shannon! Awesome tips as always.

  • @FirstLast-sy9il
    @FirstLast-sy9il 7 лет назад +15

    Where did you get that shirt ;-;

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

      yeah it's great

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

      First Last a store called box lunch in San Francisco. I think there's an online one.

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

    I used *apt-get autoremove* in the period where *apt autoremove* wasn't implemented.
    Otherwise, i mainly use *apt [option]* to get things done. :-)

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

    Loool, that Dutch sticker on the background xD

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

    Awesome info. They should have called it it apt-super!

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

    dev : a 1 color, 1 backspace
    linux user : look at how nice that look !

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

    Apt all the way, love the additional feedback from it.

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

    OK, I just tried "apt" on my OpenSuSE 42.2 box and apt is just NOT there. Oddly, I am not surprised. For those who may not know, "zypper" does the same as "apt-get" or "yum". Likewise, I tried it on my CentOS 7 box with similar results, also no surprise.

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

    Why didn't they just gave it another name? It's annoying. I thought they were the same and it's hard to remind myself since I barely use Ubuntu

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

    Hi ma'am I found problem when trying update &upgrade my Kali Linux 2018 don't give me any thing

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

    Hey Hak5 im a hacker beginner and im interested in it.So im soon going to gymnasium and which subject should i choose ex.Programming or?

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

    Is apt somehow related to aptitude on debian ? It has same command options almost the same output look. The difference is that apt has super cow powers, aptitude doesn't.

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

    Yaay Shannon, Thanks:)

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

    Another informative video, but why do you call the dash character "-" tac?

    • @Jason-jb1tf
      @Jason-jb1tf 7 лет назад +6

      She actually answers this question on english stackexchange, question 191807.
      TL;dr: "I grew up in a military family, so this was used regularly when speaking of a dash. Without getting into details, my father was in many fields where he was required to spell out commands via a speaking system, and they used tac. "

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

    Ooh.. the update script went from:
    sudo apt-get update && sudo apt-get dist-upgrade -y
    to:
    sudo apt update && sudo apt full-upgrade -y
    Thanks for the 11 byte saving! :D
    Not sure if the -y is needed but didn't get confirmation dialog in apt, so it worked? Maybe?

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

      Reminds me of Code Golf Stack Exchange... But it does have a nicer interface.

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

      Mac/au it IS more to it than you suggested.

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

      How so?

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

    wait when you pressed y on the Y/n isnt that useless. its not a capital y so its as if you typed any other letter and pressed enter it just runs the default capital choice. thats why if you type the lower case or the capital options it instantly executes

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

      The capital Y highlights the default choice should you just hit enter at the prompt. If it was capital N, the default would be no.

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

      Mac/au I think you should try to type a capital Y in that prompt and what happens when you just press enter

  • @bearwolffish
    @bearwolffish 7 лет назад +7

    'pacman -S' ftw, with added Arch Strike repository for the winwin

  • @sandeepvk
    @sandeepvk 2 года назад

    i used sudo apt install neofetch on my fedora machine and did work

  • @abrehamish
    @abrehamish 2 года назад

    Well presented

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

    i like your presentation i really wish we could be friends on RUclips. make similar Tech content

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

    "HIER NIET POEPEN A.U.B", it says on a sticker on the wall, which translates to "PLEASE DO NOT CRAP HERE"

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

    Beautiful!

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

    APT rocks .. but still dont like the stupid side bar on ubuntu (i only use kali anyway :-))

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

    Awesome thank you.

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

    can you put apt or apt-get on manjaro? plz reply

  • @casperdacosta-luis4729
    @casperdacosta-luis4729 6 лет назад

    Things like searching don't require sudo

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

    I still use aptitude

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

      Aptitude works the best in complex dependency resolution sets where you have what seems like a billions layers of recursive dependencies. I find it works in the situations where apt-get implodes with a short list of packages.

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

      Hand Banana had no idea that there was any real difference between them I just liked the "aptitude search" command

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

      turd sandwich aptitude(8) are like apt-get(8), but more modern cli and with a gui (terminal gui).
      They are all build on top of libapt.
      But I will probably switch to aptitude(8) and apt(8) and drop my use of apt-get(8).

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

    I do apt-get upgrade -y, how I do with apt?

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

    I guess we are assuming everyone is on Debian, how about yum(centos) and zypper on suse

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

      Don Hill and there comes a rpm comment where someone talks about apt based distributions.
      Post that on your own channel or at least ask without assuming all are interested in rpm systems, to use your rethorics. Sorry for stepping on your toes now.

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

    apt has been around for many years. Maybe in Ubuntu for only 3 years.

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

    Thank you!!!

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

    yes it is the same in debian and linux mint, this i can confirm as reality, any other distro like fedora as you askt. i dunno.

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

    For RedHat distros you have to use apt-rpm: superuser.com/questions/479850/can-apt-get-be-used-on-red-hat-systems

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

      Joshua Pritt thanks for sharing

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

      Joshua Pritt why not just use yum or what's replacing it, dnf?

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

      apt-rpm doesn't work well with other rpm package managers, from what I can tell. Wikipedia lists 4 distros which apparently still use apt-rpm, pclinuxos being one of them. If you really wanted apt with rpm packages, that's probably the easiest way to go. Otherwise you're basically doing surgery on your os, have fun ;)

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

      RedHat distros not having apt(8) and the users first comittment from developers are the two reasons rpm based distros are not a choice for me.
      But obviously YMMV.

  • @purifierphoenixthemecca
    @purifierphoenixthemecca 7 лет назад +22

    it's all about that yaourt

    • @baumkuchen6543
      @baumkuchen6543 7 лет назад +10

      After moving to arch, no distro is good enough anymore...

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

      fact of life lol :)

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

      come see the light and join pacaur

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

      nah mate, pacaur is way better.

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

      MrDeejayjfx i got to try pacaur... Never hear about it...

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

    i used to tell people that i stopped watching tv because of ads and now youtube ....

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

    i am using APT as i always been

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

    does this work well over SSH?

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

      Xoa Online Works fine for me, using Putty of course

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

      Xoa Online:
      Of course it does. Why wouldn't it?

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

      Haakon Reppen works with any SSH client. ;-)

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

    Bitbucket is a blast!!!

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

    A small note in passing... apt did not just arrive, apt has been around since about 1992. Debian has used apt as its package manager since day one. What has just arrived, was they looked at some of the enhancements that apt-get had, and asked "Well why couldn't we do that?" The answer was people shuffling their desert boots while looking at the carpet, so they went and added some some the front end stuff apt-get has done for years.
    All apt-get is or ever was, was a front end / request handler for apt. The very fact it exists should have told apt to clean their act up in about 2005....

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

    Hahaha...! The sticker "hier niet poepen a.u.b".

  • @AmxCsifier
    @AmxCsifier 6 лет назад +2

    Your internet connection is so slow

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

    Like that shirt

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

    BashBunny plz

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

    and aptitude

  •  7 лет назад

    didnt have any idea about that, you are my woman :-D

  • @69opinion
    @69opinion 4 года назад

    I caught that. You said Bitfuckit. ;^)

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

    I was faster than you with subscribe thing.

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

    sudo pacman -S getallthethings

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

    apt or yaourt for me.

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

    Not sure as to why you would not want to do an "su -" from your user shell and just become 'root'. To me, if you are intending to do some serious maintenance work it requires fewer key strokes.
    Granted, I was introduce to UNIX back in August of 1987 - an LINUX is not quite UNIX. Here at home (I am now retired) I do most of my stuff on a 27" iMac. I do have on Ubuntu system but do most of my 'playing' on a FreeBSD system. For programming, I still prefer plain old 'C'. Take care young lady - de N3GAQ.

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

      mike klaene maybe because the sudo command makes it into your history. It is easier to track what have been done. You might run more stuff as a plain user and not as root, which is a good thing. Here "sudo !!" is your friend, as you know.
      There are plenty of reasons beginners should use sudo(8) instead of su(8). But if you know what you do, or as most people who claim but doesn't, then please use su(8).

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

      Ubuntu based systems have this weird thing where by default, the root user has no password. The only way to su to root is to do a 'sudo su' (unless you add yourself to the wheel group).
      Here's one reason you might not want to use sudo: it is a somewhat more complicated suid program with more of a history of vulnerabilities. If I were building a hardened server I would consider leaving it off. 'su -c "$@"''
      But sudo does make sense, and if you use it you don't necessarily have to remember a separate password for root (or reuse a password).

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

      There are a good reason to not have an unlocked root account with password.
      Set up a web server to the Internet, or open up ssh server, then look at the logs.
      A bit scary...
      And you can use sudo with a switch instead of sudo su.
      Or try
      sudo bash - - login
      Or actually use the manual to look that up, I don't remember myself. :-)
      man sudo
      Yes, if you share administration, you don't need to share root passwords. And that is usually the case in professional sites.
      You just add the administrator account to sudo group.
      And then it is possible to trace commands, to larm on strange usage.

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

      Yeah I've seen the logs, at least for ssh ;)
      I'm not saying you shouldn't use sudo, to be clear. I am saying that sudo is a potential path to root for an attacker who already has a shell on a system (from crash bugs, or from just already having your password). So there are certain use cases where you could consider leaving it off, as a hardening technique.
      I actually like sudo btw. One thing I do with it is launch Firefox as a less privileged user (nopasswd), which can't read my .ssh folder or put a network interface in promiscuous mode, etc (sudo -u ff-$USER).

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

      Ok, that looks ok.
      But by demanding user password when entering sudo(8) commands you are migrated the problems you mention.
      By adding password to root, you are opening another path into your machine if it is has an internet access. Which isn't hardening your installation. That is, you add a know account, so they can guess password of known user account.
      That is why you should for instance remove user pi in Raspbian installations.
      Smart thing to do with sudo(8) and firefox(1). Might take that up. :-)
      Just to warn others, do not run GUI as root, especially not web browsers that surf internet.

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

    i use pacman, really easy

  • @Didi-si5cs
    @Didi-si5cs 5 лет назад

    i love u

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

    Just use aptitude

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

    ln -s ditdah-ditdahdahdit-dah apt

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

    I need that tshirt but im a manly man. wat do?

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

    Hi, ummm yes, so pacman or yaourt.

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

    Believe this is was ready covered in Hak5 snubs

  • @zanaris-falador
    @zanaris-falador 7 лет назад +1

    What is linux?

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

    Bitbucket... hahahaha

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

    first like

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

      Kap'n Kronos I had the first comment;)

  • @JohnDoe-fk6id
    @JohnDoe-fk6id 7 лет назад

    "for starters" new drinking game?

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

    awww, i felt un love with you

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

    WTF are you guys doing? what about the bash bunny?

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

    Interesting, for me if I run apt without sudo, it runs sudo for me whenever it needs it. I've never really used apt or aptitude, as apt-get is too much of a habit for me, but I might as well play around with it while I have an Ubuntu derivative to update, right?

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

      Many commands to apt, apt-get etc doesn't need root privileges.
      But does apt that? Don't think I like that much...

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

      I was just pointing out an unusual behavior of apt. Although, I've made some shell scripts that do the same thing before.