Linux Crash Course - The apt Command

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2021
  • In my "Linux Crash Course" series, I go over a very specific command to give you an overview of how it works. In today's episode, I go over the basics of the apt command, which is the official package manager for Debian, Ubuntu, and others.
    📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!
    ➡️ ubuntuserverbook.com
    🙌 Support me on Patreon and get early access to new content!
    ➡️ learnlinux.link/patron
    ☁️ Get $100 toward your own cloud server with Linode!
    ➡️ linode.com/learnlinuxtv
    🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
    ➡️ learnlinux.link/amazon
    💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
    ➡️ learnlinux.link/tinypilot
    🐦 Follow me on Twitter!
    ➡️ learnlinux.link/twitter
    💬 Official LearnLinux.tv Community:
    ➡️ community.learnlinux.tv
    💽 How to create a bootable flash drive for installing Linux
    ➡️ linux.video/flash-usb
    🐧 Which distro do I use?
    ➡️ learnlinux.link/mydistro
    🔐 How to better secure OpenSSH:
    ➡️ linux.video/secure-ssh
    ☁️ How to create a cloud Linux server with Linode:
    ➡️ learnlinux.link/create-linode
    👨 More about me:
    ➡️ www.jaylacroix.com
    ➡️ www.learnlinux.tv/about-me
    #LearnLinuxTV #Debian #Apt
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 68

  • @b4rt009
    @b4rt009 3 ปีที่แล้ว +14

    Probably the best apt tutorial I've seen so far

  • @ryanbthiesant2307
    @ryanbthiesant2307 2 ปีที่แล้ว +8

    Good lesson.don’t underestimate how less people know. Please keep on over explaining. I did not knowcapital is default. It takes 5 secs to explain. Tmux enables to run multiple terminal command windows. Thank you.

  • @AnzanHoshinRoshi
    @AnzanHoshinRoshi 3 ปีที่แล้ว +5

    Thank you, Jay. I love APT. As soon as I started to use APT it had me learning the terminal, bash, reading man pages etc etc. And I spent quite a while on Debian itself simply out of love for APT.

  • @AZIANNINJA24
    @AZIANNINJA24 3 ปีที่แล้ว +1

    Already gave the video a like before I even finish watching because I know it’ll be great! Was looking to learn more about this. I’ve been using Centos for school and my love for Linux is ever growing

  • @buildfrom
    @buildfrom 3 ปีที่แล้ว +13

    Excellent content. The t-shirt is brilliant.

  • @katlegobopape9760
    @katlegobopape9760 3 ปีที่แล้ว

    Thanks Jay :-D it's nice to follow along as you teach :-D you make learning Linux fun. Thanks for catering for beginners.

  • @NapanTR
    @NapanTR 3 ปีที่แล้ว +4

    Add "apt show " to show more info about a package and that would cover all apt commands that I normally use.

  • @russellbrooks3622
    @russellbrooks3622 3 ปีที่แล้ว +1

    Great instructional video. I generally use package managers, such as Synaptic or distro-specific PMs, but it's cool to know what is actually going on behind the GUI. I sometimes use the terminal as well. I didn't know about using search in the terminal. Excellent tutorial.

  • @kevinxxx1387
    @kevinxxx1387 3 ปีที่แล้ว

    What a coincidence! I started using Linode due to one of your earlier videos (and I'm glad I did.

  • @kuropixeljp
    @kuropixeljp 3 ปีที่แล้ว

    Appreciate these essential videos!

  • @deputy899
    @deputy899 3 ปีที่แล้ว

    Really enlightening. Many thanks.

  • @jgodinez1114
    @jgodinez1114 3 ปีที่แล้ว

    Great explanations! Many thanks

  • @ObsidianMercian
    @ObsidianMercian 3 ปีที่แล้ว

    This is fantastic! Thank you very much.

  • @waynelp3851
    @waynelp3851 ปีที่แล้ว

    Thank you man i pretty much knew the most of that but some stuff was rly usefull for example i didnt know it was possible to install multiple packages at once or that package name search where you just tipe a keyword in that was veeeeeeeery usefull thanks alot man

  • @abhimudaliar1064
    @abhimudaliar1064 3 ปีที่แล้ว +1

    Spot on explanations.

  • @ShawnLivesInItaly
    @ShawnLivesInItaly 3 ปีที่แล้ว

    Jay's new book on Ubuntu Server is really good and helps me understand much more about this system

  • @urjasvi
    @urjasvi 3 ปีที่แล้ว +5

    this is going to be my apt manual
    thank you 🙏

    • @willieerik3845
      @willieerik3845 2 ปีที่แล้ว

      I dont mean to be offtopic but does any of you know of a way to log back into an Instagram account??
      I stupidly forgot my password. I would love any tips you can offer me

  • @victorpinasarnault9135
    @victorpinasarnault9135 2 หลายเดือนก่อน

    I love it!

  • @wildmanjeff42
    @wildmanjeff42 3 ปีที่แล้ว

    Thanks for the video

  • @guilherme5094
    @guilherme5094 3 ปีที่แล้ว

    Great video!

  • @gartennelke
    @gartennelke 3 ปีที่แล้ว

    Well explained, I thought I knew all I needed to know about apt, but I didn't!

  • @alexlandherr
    @alexlandherr 2 ปีที่แล้ว

    I use tmux on a Debian machine at home, really useful for running user-initiated background programs while not logged in.

  • @krzysztofnowacki7641
    @krzysztofnowacki7641 3 ปีที่แล้ว +1

    Excellent tutorial. Can you also explain the difference between apt and aptitude command? I've seen a lot (really a lot) of discussion in the internet between users using one of the other command. Can you explain which one do you think is better and why?

  • @jellyfish1772
    @jellyfish1772 2 ปีที่แล้ว

    Thank you Sir

  • @jessegodsey
    @jessegodsey 3 ปีที่แล้ว +2

    As always, very nice. Might want to next time also mention, sudo apt autoremove AND sudo apt autoclean. I use those pretty regularly as well.

  • @evodefense
    @evodefense 7 หลายเดือนก่อน

    Thanks!

  • @Nico-rl4bo
    @Nico-rl4bo 2 ปีที่แล้ว

    Nice tutorial

  • @SkyFly19853
    @SkyFly19853 3 ปีที่แล้ว

    Very nice.
    Very informative.
    ✅✅✅✅✅

  • @LMGunslinger
    @LMGunslinger 5 หลายเดือนก่อน

    the entire concept of apt commands blow my mind. Like it seem so easy and yet so easy to mess up and install the wrong thing. it seem ssuper wierd.

  • @Siskiyous6
    @Siskiyous6 3 ปีที่แล้ว

    Thank you

  • @CrustyAbsconder
    @CrustyAbsconder 3 ปีที่แล้ว

    I would be interested in seeing the differences between apt 1.9 and 2.0 and 2.1 and 2.2
    along with a brief comparison of dnf 3.0

  • @Lunolux
    @Lunolux 3 ปีที่แล้ว

    nice video

  • @sulaiman-nz6jv
    @sulaiman-nz6jv 3 ปีที่แล้ว +4

    We need advance tutorial for apt

  • @fbritorufino
    @fbritorufino 4 หลายเดือนก่อน

    This might be a recent thing, but according to the manual `apt upgrade` now actually does the upgrades that require new packages, so the difference from `full-upgrade` would be that it doesn't do upgrades requiring the _removal_ of currently installed packages. Meanwhile, `apt-get` maintains the behavior described in the video.

  • @JacobCDando
    @JacobCDando 9 หลายเดือนก่อน

    I laughed soooo hard at your t-shirt!

  • @fuseteam
    @fuseteam 3 ปีที่แล้ว

    8:00 would alt+f10 work?

  • @kojack57
    @kojack57 3 ปีที่แล้ว

    Is ZFS a better idea or option over LVM.

  • @noferblatz
    @noferblatz 3 ปีที่แล้ว +3

    "Non-free" doesn't mean the source isn't available. Debian is quite persnickety about licenses. Anything which does not meet their narrow "open source/free software" criteria gets dumped into the "non-free" repo. Source may well be available for the package, but it's not licensed in a GPL2 type way. Matter of fact, years ago Debian dumped the RFCs because you couldn't modify RFCs and pass them on. This violated their GPLish licensing criteria (user must be able to modify the source). I've used Debian solely fo decades, but they're a little nutty sometimes.

  • @ManOnTheMoon2131
    @ManOnTheMoon2131 3 ปีที่แล้ว +1

    Love the shirt! Lol

  • @phrtao
    @phrtao 3 ปีที่แล้ว

    I clicked for the tutorial but the thumbs-up comes for that T-Shirt

  • @juliannotbreezy5321
    @juliannotbreezy5321 6 หลายเดือนก่อน

    how to install blender 4.02 with this method?

  • @ShawnLivesInItaly
    @ShawnLivesInItaly 3 ปีที่แล้ว

    Cool

  • @AbuFaizal
    @AbuFaizal 3 ปีที่แล้ว

    why and what is the purpose of apt-get?

  • @fuseteam
    @fuseteam 3 ปีที่แล้ว +1

    i'm curious how deb packages work as in what is actually happening when it is "installing"

    • @catayloprince4772
      @catayloprince4772 3 ปีที่แล้ว

      I think deb packages are compressed binaries of files. A script program decompresses hese binaries and copies them into the right directories or folders. Not just binaries. Including config files.

    • @fuseteam
      @fuseteam 3 ปีที่แล้ว

      @@catayloprince4772 hmmm make me wonder how can inspect which right directories a particular deb package will extract to

  • @BloodAsp
    @BloodAsp 3 ปีที่แล้ว +1

    Have a comment to feed the algorithm. Ty for this series.

  • @M4XD4B0ZZ
    @M4XD4B0ZZ 6 หลายเดือนก่อน

    So would
    $ sudo apt-get update && apt-get upgrade -y && apt dist-upgrade -y
    be a sufficient command?

    • @fbritorufino
      @fbritorufino 4 หลายเดือนก่อน

      I don't think so. If you are going to run that you might as well just do `apt dist-upgrade` rightaway, because the point would be to more easily evaluate the cases where new packages and, crucially, the removal of packages would be required, so you can decide whether they're worth it. It's how you avoid removing packages you need or use.
      Running the `-y` option would also be unsafe for that reason.

    • @M4XD4B0ZZ
      @M4XD4B0ZZ 4 หลายเดือนก่อน

      @@fbritorufino thank you for that explanation

  • @emerynoel567
    @emerynoel567 หลายเดือนก่อน

    This was great but my sources.list file does not look like yours.
    #deb cdrom:[Linux Mint 21.3 _Virginia_ - Release amd64 20240109]/ jammy contrib main
    # This system was installed using small removable media
    # (e.g. netinst, live or single CD). The matching "deb cdrom"
    # entries were disabled at the end of the installation process.
    # For information about how to configure apt package sources,
    # see the sources.list(5) manual.
    Also, when running the dist-upgrade command, I got about 50 errors `error: invalid volume.` interspersed throughout. (When i installed mint, I asked it to set up dual boot and shrink my windows partition. Seemed to go well but I can no longer boot to windows, windows install media can't even see the drive (but mint can browse it just fine).)

  • @janlochman1985
    @janlochman1985 ปีที่แล้ว

    But why do I need to download packages all the time. Isn't that a wast of free space?

  • @dclay1983
    @dclay1983 2 ปีที่แล้ว

    The 'q' key will quit from htop as well.

  • @JosePerez-qt8cf
    @JosePerez-qt8cf 3 ปีที่แล้ว +1

    What's the difference between 'apt' and 'apt-get' ?
    BTW thanks for the video

    • @dktol56
      @dktol56 3 ปีที่แล้ว +2

      Apt combines the functionality of the apt-get and apt-cache commands and has a cleaner output. Apt-get primarily installs, removes, and upgrades packages, while apt-cache searches for and queries package information. All of these are layered over a more basic tool called dpkg that installs/removes deb package files - it doesn't know how to resolve package dependencies, nor how to pull packages from a remote repositories. The apt commands fix these limitations.

  • @bradolson8242
    @bradolson8242 3 ปีที่แล้ว

    Hilarious Shirt.

  • @carlosandi4608
    @carlosandi4608 ปีที่แล้ว

    What is your view about Kali-Linux

    • @LearnLinuxTV
      @LearnLinuxTV  ปีที่แล้ว +1

      I haven’t had a use-case yet so I don’t have much of an opinion (yet).

    • @carlosandi4608
      @carlosandi4608 ปีที่แล้ว

      @@LearnLinuxTV Would be great to follow you in a complete linux course. I follow you a little there a little here but would be great if you create for us a complete linux course.

  • @ab-re7uo
    @ab-re7uo 2 ปีที่แล้ว

    minute 2.20 is where it actually starts.

  • @martinruegg3611
    @martinruegg3611 2 ปีที่แล้ว

    nice shirt! I like it! do you consider yourself beeing one of them?

  • @Charlie8913
    @Charlie8913 3 ปีที่แล้ว

    Nice basic overview of apt. You could make a follow up video about PPA, apt pinning and pre/post installation hooks.
    Just for comparison i find apt rather slow and often need to add a PPA for additional software. Therefore i prefer Arch Linux with pacman, which is much faster. The AUR helper yay gives me access to pacman and nearly all software i ever wanted from the AUR. Also pacman has much better handling of pre/post installation hooks which is really handy to i.e. patch evdev after an upgrade with my custom keyboard configuration.
    And even the fast pacman is really slow when compared to apk from Alpine Linux, but don't mix it up with the .apk files from android, that's something completely different.
    If there only were a package manager with the speed of apk and huge package diversity of pacman+AUR... dreaming of it while setting up a ubuntu vm...

  • @Kedvespatikus
    @Kedvespatikus 3 ปีที่แล้ว

    apt is absolutely not essential. Greetings from my Manjaro system. :)

  • @creativecode530
    @creativecode530 2 ปีที่แล้ว

    ले लील्लल्ल

  • @TMinusRecords
    @TMinusRecords ปีที่แล้ว

    Great. He clears the screen instead of explaining what any of the lines of the output mean. What a waste of time

  • @praneethreddy904
    @praneethreddy904 ปีที่แล้ว

    Way of explaining is too poor first explain and show practical, I watched this video on 2x eventho it's too slow 😕