Linux Crash Course - The Pacman Command

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024
  • In my "Linux Crash Course" series, I go over the basic details of one Linux command or service in each episode in order to teach you the basics. In this episode, I go over the "pacman" command, which is the package manager for Arch Linux and other distributions that are based on Arch Linux.
    📖 Check out Jay's latest book, Mastering Ubuntu Server 4th Edition. Covers Ubuntu 22.04!
    ➡️ ubuntuserverbo...
    🙌 Support me on Patreon and get early access to new content!
    ➡️ learnlinux.lin...
    📖 Wiki article for this video:
    ➡️ www.learnlinux...
    🛒 Affiliate store for Linux compatible hardware/accessories (commission earned):
    ➡️ learnlinux.lin...
    💻 Check out the Tiny Pilot KVM for your Homelab (commission earned):
    ➡️ learnlinux.lin...
    🐦 Follow me on Twitter!
    ➡️ learnlinux.lin...
    💬 Official LearnLinux.tv Community:
    ➡️ community.lear...
    💽 How to create a bootable flash drive for installing Linux
    ➡️ linux.video/fl...
    🐧 Which distro do I use?
    ➡️ learnlinux.lin...
    🔐 How to better secure OpenSSH:
    ➡️ linux.video/se...
    ☁️ How to create a cloud Linux server with Linode:
    ➡️ learnlinux.lin...
    👨 More about me:
    ➡️ www.jaylacroix...
    ➡️ www.learnlinux...
    #Arch #ArchLinux #Linux

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

  • @michaelneibauer8005
    @michaelneibauer8005 2 ปีที่แล้ว +30

    tutorials like this make learning linux so much easier and i think fun. I appreciate the content keep it up!

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

      Count on it. I have a ton of videos on my hard drive that are just waiting to be uploaded - expect 30+ episodes (at least) within the next year or so. I don't see this series ending soon, if ever.

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

      @@LearnLinuxTV Thats awesome man. Its certainly helping thousands of people, myself included obviously. Keep up the hard work!

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

    I know this video is old but I'm tryinng to learn different Linux distros and this REALLY helped understand the package manager for Arch. The parts where you go over orphans and how to find packages was some of the stuff I needed Thank you!

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

    Awesome, moved over to Manjaro and this is exactly what I needed. Thank you so much.

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

    man u are kinda best linux guide maker i`ve found yet on the YT

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

    That looks awesome. I'll install Arch and try it

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

    This Video really helped me with my guide on using Arch thank you i will learn some more from this amazing channel

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

    Use reflector to refresh mirrors.

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

    Jay this was a great video. I followed it like a tutorial. I updated my mirrorlist and got much quicker connections. You went a little fast toward the end there (that's my own fault for not knowing Nano very well), but you never skipped a step (thank goodness for the pause button) and mine worked just like yours did! Thanks so much.. Joe

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

    I love you, man. And subscribed

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

    Sir, your a gem. I resently picked up linux due to the fact that windows is... well, its just windows (crap), and with me being a quantum sponge i just enjoy learning (i cant stop) lol, i couldn't help notice that your mining in the backgroung (sorry) i was wondering if you were mining on windows or linux, and if linux could you kindly post a video on how to do so, like i said your a gem and thanks for all you do.

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

      Mining? Sorry, I don't know what you're referring to.

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

      @@LearnLinuxTV , oh okay cool, in the begining of your video you have a screen in the background with what looks like phoenix minner running on it, i was just wondering if it was on windows or linux thats all.

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

      @@LearnLinuxTV but if you dont know then you dont know, thank you for your quick response btw

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

    Yes, Brilliant Lifesaver!! New dude to Manjaro and this so helped!!! Thank You

  • @normang.827
    @normang.827 3 ปีที่แล้ว

    Thanks Jay, very insightful

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

    Are there any CLI / GUI tools to automatically regenerate the mirrorlist instead of manually always visiting that page and copy-paste the sources to the file?
    Feels a bit tedious to manually maintain this.

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

    Wonderful teaching

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

    As always a great video. Any comments on ‘paru’. Watched a couple of videos suggesting yay was not being supported and you should switch to paru. It seems one of the yay developers is starting a new branch of an Aur helper.

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

      I heard its being maintained but no new features are being added. So yay should still be usable for the foreseeable future.

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

    nice basic video. been doing rhel/debian distros for years but trying manjaro for the first time. don't care about pretty window styles and graphics; i'm a command line kinda guy

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

    Thanks for the content!

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

    Thank you man 👍👍

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

    Hi, quick question how do i enable script to handle both relative and absolute paths correctly. Lets say i have a file root/my-folder a root/script.sh and a lot of files root/my-folder/.dat . The script needs to access every file and do some string operations on each of them, then prints the result.

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

    It's not my cup of tea, but good video.

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

    Jay go back and read the documentation!

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

      I'm sorry, but I'm not really understanding what your concern is. You mentioned an issue with reflector, but I'm not using that in this video.

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

    Thank you, Jay. I love Debian's APT but I really respect pacman.

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

      I was getting used to pacman on Manjaro on my Pinebook Pro, but I just switched to Armbian. Having had at least one computer running Ubuntu forever now, it's sort of nostalgic to be back on APT.

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

      @@cards2468 APT is so clear and robust. I only use software stores (like Pop Shop) for the rare flatpak. Sometimes I use Synaptic. But I primarily use APT in terminal (I usually update every morning).

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

    Yaay! You remembered to put on your PacMan T-shirt this time :D Thanks a lot for this video, Jay. I recently installed an Arch Linux VM and had no idea how pacman worked, so this will definitely will come in handy.

  • @ManishSharma-fi2vr
    @ManishSharma-fi2vr 3 ปีที่แล้ว +1

    Please upload about what are repositories and packages

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

    U could use the package reflector, which will generate you the mirror list. It is a command line tool.

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

      Plus it comes with a systemd timer or you can use it as a pacman hook

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

    *Words of Wisdom and WARNING* at 14:25
    I was dual booting Arch with Windows 10. And got busy with work and gaming for stress relief. When I went to -Syy then -Syu, I was given an error that it could not update.

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

    Just wanted to learn a little bit about pacman because I am testing Manjaro Linux and I am considering adopting it instead of Linux Mint in my notebook. The package manager is simples and is easier to use than apt. Like and favourite for future reference. Thank you so much, sir! God bless you.

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

    Thank you. Very helpful, clear and concise.

  • @saggitarius6155
    @saggitarius6155 หลายเดือนก่อน +1

    I have just moved to Manjaro and this video was of great help.
    Thank you.

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

    Does pacman have an equivalent to apt autoremove? It would be convenient if so, so that one does not have to manually enter a long list of orphaned packages

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

      Not officially (as far as I'm aware, someone please correct me). You can chain commands together to achieve that, so I may do another video on this in the future.

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

      @@LearnLinuxTV pacman -Sc?? Maybe?

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

      I guess it's pacman -Rns

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

      If you have the paru aur helper, you can use "paru -c". Or, you can also do "sudo pacman -Rs $(pacman -Qqdt)"

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

    Can I use pacman to install from the aur? Good job with your explanations.

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

    any way to remove dependencies from pacman?

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

    Thank you, sir! It was really useful!

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

    Most of the time (like 99%) there is no need to use -Syy, it would just cause unnecessary stress on the mirrors, you just need -Sy, and (unless you know what you are doing) always update all packages after the sync (-Syu) don't install a new one after only syncing or you run the risk of breaking a dependency of the not updated packages . wiki.archlinux.org/index.php/System_maintenance#Partial_upgrades_are_unsupported

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

    Thank you, Jay, for sharing. I am a new Linux user and, I just downloaded Zero Linux. I am pleased that you are so willing to help us, who know nothing. However, I really do like this distro, and I am looking forward to learning Arch.

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

    Thanks Jay, just moved to Manjaro from Mint and getting used to pacman over apt. Just the quick primer I needed. Interesting to note that Manjaro has its own utility for mirrors - pacman-mirrors, where you can examine, configure and update your mirrorlist.

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

    great stuff my guy

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

    Your information needs to be updated because rsynk isn't installed via default any longer, so reflector can't synk correctly to the server mirrors that are up, ie sudo pacman - S rsynk then man rsynk then find the correct commands for pacman.d/ save in /etc/pacman.d/mirrorlist

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

    Im not familiar with this distro but in fordora we can block some updates and take the rest with this command
    sudo dnf update -x kernel*,mesa*,libdrm*,xorg-x11-dru-a
    does pacman have a command like that?

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

    Thank you

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

    perfect

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

    Hi there.
    You can also use reflector or reflector-simple(AUR) from the command line.
    Additional features of Pacman are 1/ parallel downloads, I have 25 setup. 2/ color, ILoveCandy
    These can be edited in /etc/pacman.conf, just remove the # at the beginning of the line.
    Have fun and enjoy.

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

    Many thanks Jay, You have been a great help over the years, always 'LIKE'!,
    I installed Manjaro for the first time 36 hours ago..no sleep! and before I looked on 'youtube' for help and saw your Tutorial, "Fantastic" for me, maybe a bit too late.
    I updated my Mirrors as per the Tutorial,.
    "sudo pacman -Syu...
    :: Synchronizing package databases...
    core is up to date
    extra is up to date
    community is up to date
    multilib is up to date
    :: Starting full system upgrade...
    warning: base: local (3-2) is newer than core (3-1)
    warning: bash: local (5.1.016-2) is newer than core (5.1.016-1)
    warning: filesystem: local (2022.06.08-3) is newer than core (2021.12.07-1)
    warning: lib32-libxcrypt-compat: local (4.4.28-4) is newer than multilib (4.4.28-2)
    warning: libxpresent: local (1.0.0+2+gdd6771c-2) is newer than community (1.0.0-2)
    warning: nano-syntax-highlighting: local (2020.10.10+10+g1aa64a8-1) is newer than community (2020.10.10-1)
    warning: os-prober: local (1.81-1) is newer than community (1.80-1)
    warning: pacman: local (6.0.1-12) is newer than core (6.0.1-7)
    there is nothing to do"
    There are a few " is newer than core" readings.
    Am I in trouble??
    Advice Please

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

    Why ppl are scared of linux I dunno........the basics, which are what we use most of the time anyway are quite easy to get a hang of. If youve had any experience with Dos, learning to move around the file system with CD or making directories, deleting files etc, doestn take much learning.......and things like installing and uninstalling SW is quite easy too..Im a noob but Im finding the basics very easy to learn, as I think most people would. Most ppl are just scared of the terminal and theres no need to be. Thank you for your uploads.

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

    I love pacman, itś awesome to have acces to so many repos on the go jst like that, it is wild! Quick lesson I learned it might alter your configuration like now all of the sudden my usb ports are gone on my desktop for example. I run pacman on my phone I flashed it, desktop Ubuntu 20.04 LTS Gnome phone phosh archlinux/gnome and waydroid. I cannot reset nor restore the usb ports on desktop lsusb, chmod +x usbreset, sudo ./usbreset /dev/bus/usb/, sudo -H gedit /etc/default/grub in Bios but even there they do not recognize connected devices. Archlinux has locked the phone as well, mobile data and texts so I might be looking in the wrong place on the desktop. archlinux runs fantastic on that pine phone and I pacmanned to wild too early too quick. I will never let go this apt Ubuntu desktop, such a pearl I do understand pacman and why you need to respect it as someone noted before. I am guilty lol!!

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

    Hey superseeker password man, you're such a great teacher with owesome experience. I did your Diploma course on Alison.

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

    how to install apps not in the archlinuxorg example labelImg could you help pls im a noob in linux

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

    Been on linux for a couple of months now, like mint.. Installed it on all my desktops and have mow installed it onto a Linx 2 in 1 cherry tral machine, cant get the wifi working whatsoever.. it uses a broadcom card.. any chance on a vid on broadcom as it seems to be a common problem...

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

    I had been listening to your video for seven minutes, while tabbed out, before realizing it was "package manager" and not "PAC-MAN" the arcade video game title.

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

    Do I need to install pacman for this to work?

  • @upinsmoke-tv
    @upinsmoke-tv 8 หลายเดือนก่อน

    Thank you much , im a 30 year windows convert and these videos really help me

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

    I genuinely thank you a lot. I was always clueless as to what commands in tutorials for app installations actually did. Now I know. Thanks a lot.

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

    Thank you very helpful video.

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

    thank you jay, your tutorials help me a lot for learning linux

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

    Very nice and helpful. Thanks!!!!

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

    i learn more about my laptop cuz using arch, most unique distro for me

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

    An excellent and outstanding tutorial, THX!!

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

    Great explanation...thank you sir

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

    Thankyou sir!

  • @Andy.N-_-
    @Andy.N-_- 3 ปีที่แล้ว

    Thanks Jay, another easily understandable and educational video.. Any change you could do a video on installing pygame using apt ... on ubuntu for instance just for fun :)

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

    Amazing

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

    Great Video. dude

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

    Jay, I love your channel but the mid roll ads are just too annoying. It 's now limiting the videos I watch, and even then I stop at the1st ad. I understand you have to make the channel pay, but.. .. . .

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

    sudu ?

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

    Hi when I do [hiswill@hiscomputer ~]$ cat /ect/pacman.d/mirrorlist
    cat: /ect/pacman.d/mirrorlist: No such file or directory My os is Manjaro