YUM Repo Setup | RHEL 8 | AppStream & BaseOS YUM Repository | Tech Arkit
Vložit
- čas přidán 9. 09. 2024
- Yum is the Red Hat package manager that is able to query information about available packages, fetch packages from configured repositories, install and uninstall them, and update an entire system to the latest available version. Yum performs automatic dependency resolution on packages you are updating, installing, or removing, and thus is able to automatically determine, fetch, and install all available dependent packages. In this article YUM ( YellowDog Updater Module ) Local installation and configuration step by step guide.
#rhel8 #yum #appstream #baseos
CZcams PlayLists
RHCE: goo.gl/LGTmDK
Shell-Scripting: goo.gl/a1Hu3s
Linux-Commands: goo.gl/QDoL7h
RHCSA Certification: goo.gl/X2Ksqn
Putty Software Tricks: goo.gl/MB1Do2
Linux OS: goo.gl/62p8s9
Follow Us on Social Media
Github: github.com/tec...
Telegram Group: goo.gl/KPvMda | arkit.co.in/on...
Reddit: bit.ly/redditark | goo.gl/mcUvef
Mailing List: bit.ly/feedburn... | goo.gl/fb/WAU7JG
Facebook: linuxarkit | goo.gl/2QN4sD
LinkedIn: bit.ly/linkedark | goo.gl/ZLcikC
Twitter: / aravikumar48
Google Plus: bit.ly/gplusark | goo.gl/79zwX9
Whatsapp Group: bit.ly/wappg
Telegram Group: bit.ly/linux-te...
AWS Free Tier Account: bit.ly/aws-free...
Sir Thank yu for this video I am learning red hat form a few weeks but have been facing problems in installing despite my repo were configured properly but after this video i have sucessfull installed httpd.
Thanks.
Nice to hear.
I was searching for it and finally got it, tha k you
Excellent
little bit new thing thanks for your knowledge sharing...........!!!!!!!!!
Thanks Srikanth. Stay tune for more videos and courses.
Thank you bro finally done 🙌🙌
Excellent job.
thanqqqq sir...its working...TYSM
Welcome 👍
Thank u so much bro i got it
Welcome 👍
@@TechArkit most help full for me this one Al most I searched every where I didn't get any thing 😅😅
thanks, your video really helped me
Awesome
thank you sir
All the best
@@TechArkit thank you soo much sir, tomorrow i was passed my RHCSA exam 😌thank you for your video sir 🔥❤️
Thanks for your sharing video .
Thanks for watching
Thank you very much sir
Thank you for watching.
Good video !
Thanks for the visit
failed to download metadata 'BaseOS' ? what is the problem and solve this ................
Great video 👍
Thanks
Create video on slow server performance issues. Thanks in advance.
@@desidudevlogs3121 Okay, will do one.
Hi .. Its working fine on rhel 9 .If Possible , Kindly upload more vedio about repo configuration through http,ftp, nfs local path..
Okay
Thanks
Thanks you to.
👍🏼
Hi Sir, I am not having AppStream and BaseOS in my /mnt dir, how I can get these? I not able to install anything
If it is RHEL 8 or earlier version you will see those folders.
Your great video made me appraise you for this. I've watched multiple videos and came across yours with no expectation. But I followed you steps and my issue with repository issue vanished while installing https but other application still cannot be installed still the same error.
I cannot see any content on mnt its blank for me
You have to mount the ISO file in /mnt
Why the redhat 124 official book, not mentioned appstream and baseos? they are the tief
Not Sure.
There is no epel-release nor ansible in appstream & baseos, can't install ansible but the repo is added cause httpd can be installed, the message I got when yum install ansible is:
Updating Subscription Management repositories.
Unable to read consumer identity
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Last metadata expiration check: 0:43:44 ago on Tue 23 Feb 2021 02:34:30 AM EST.
No match for argument: ansible
Error: Unable to find a match: ansible
Use EPEL or Local Yum repo to install Ansible.
One question, can we just baseurl from the mounted folder? just to avoid copying the AppStream and BaseOS.
Yes, you can do that, thing is RPMs and .XML files should be available for the read then you can point any path to create repo.
Hello Arkit, Good evening. good video. Hope you have time for my question ?
"
Error Summary
-------------
Disk Requirements:
At least 236MB more space needed on the /opt filesystem.
" what i am trying to do is to install the google chrome, i have download the setup in Root/Downloads folder. Getting above error when trying to install the same. i have mounted my ISO file on /opt.
You do not have enough space in /opt partition
Can you pleaSe run --- yum clean all and rm -rf /tmp/*
I've done exactly what you did but still not showing in yum repolist!!! What should i do
What is the error message your getting can you please post here.
Hello Sir,
Configured yum via FTP in rhel 8.
Unregister Subscription because of defaults yum packages.
some packages am getting an error while installing from yum
eg. Httpd
"no available metada for modular package"
Please advise
first add license rpm --import
@@TechArkit sure Sire...will try 👍
Thanks for the great explanation, is there any need to give (Appstream) and name = Appstream , is it compulsary?
No any name you can use.
RPM-GPG-KEY-redhat-release not present in mnt directory of rhel 9
RHEL 9 method is changed.
@@TechArkit yes bro I found the path overall thanks for your contribution. Works fine 👍👍👍
My mnt directory is empty. I am running a VM. RHEL 8.8.
You have to mount the DVD media to /mnt to get repository working
@@TechArkit Okay but I’m using VM and my laptop 💻 don’t have slot for dvd media.
What are exact meaning of Apstream ans baseOs?
Why we have file;///rpms ? Why 3 slash??
Yum wil install package from Apstream or BaseOs?
its a local file system that's why it need file:///
@@TechArkit Okay Sir.
Thank You 👍👍
Hi I have followed your procedure to create a local repository in RHEL8 but when i execute the command "yum repolist" iam getting error "Failed to synchronize cache for repo 'AppStream' , ignoring this repo". Same is the error for BaseOS. How can I proceed?? Please let me know
I think .repo config as some mismatch in path provided or spelling mistakes in .repo file.
I have saw in video already had a redhat.repo file, than you have created a two more repo files. I am not getting that and it's a confusing part of this video. Helpful, if you can provide insight me on this.
Secondly, I tried same way, On yum clean all, it prompt me 0 files removed
And on yum repolist no packages are showing just getting repo id and repo name. Can you please help on this as well.
Love your work. Please keep going👌
Let me check. Please follow step by step what i was explaining in the video so that you will understand it correctly.
@@TechArkit I had followed each step still stuck with the same output error. Can I get your mail id, so I can share screenshot with you?
@@Sohailkhan-we1qd yes aravikumar48@gmail.com
@@TechArkit thanks for your help mate. It has been resolved one of my friend help me do it. Future reference, I am saving your mail.
I cannot find any files in mnt folder :(
You have to mount the CD/DVD ISO file.
I remove the redhat.repo accident in /etc/yum.repo.d How can i recover
No problem it will auto create when you reboot. You can create it manaully touch /etc/yum.repos.d/redhat.repo
@@TechArkit Thank you for your reply
Failed to synchronize cache for repo 'BaseOs', ignoring this repo. Appstream repo is working fine. I am getting this error, Pls help
run
yum clean all
and try again
@@TechArkit I made a typo error in repo config file. It is working now. Thanks!!!
@@kogulakannangajendran1814 Good. keep it up.
I follow same procedure but I get error like a failed to download metadata for repo epel
check the config once again. i think your using repository which is looking for internet.
cd /etc/yum.repos.d/
mv * /opt/
touch /etc/yum.repos.d/file.repo
write the config and check
Cannot find both the folders in /mnt (in CentOS though). Any clue?
You have o mount ISO file to /mnt then only it is visible.
@@TechArkit Yes. Thank you :)
Dear Sir, Thank you for the educative videos. Please I am trying to set up a repo using vsftpd but I am stocked with Centos8, how can I set up FTP based repo for my lab??? Thank you in Advance
FTP Server Installation Guide: czcams.com/video/62xfSWBXBxU/video.html
follow this steps:-
YUM-Server: Install vsftpd packages and start ftp service
YUM-Server: copy all the packages from DVD/ISO to /var/ftp/pub
YUM-Client: vi /etc/yum.repos.d/ftp.repo
[FTP-REpo]
name=FTPTepo
baseurl=ftp://YUM-SERVER-IP/
enabled=1
gpgcheck=0
Thank you sir, I am desperately in need for your reply
@@TechArkit Thank you sir, I successfully used this video to setup yum repo with centos 7 but is this going to work with Centos 8 with the AppStrean and BaseOS Packages?
@@debbiecowles4539 You can no need to configure if you have Internet however same config will work in Centos 8.
Bro not showing cd /mnt/ appstream N baseOS all files
You have to DVD media iso file
@@TechArkit okay
Thanku sir , sir can you say how to install php 7.1 using yum command
yum install php-7.1 -y
how to download yum packages in Virtual box.. I added the dvd drive and mounted it..now i use the same method to create local repo..then also I am not able to install any packages as it gives me error...Failed to download metadata for repo 'AppStream'
Even if I run the command "yum repostlist" I still get the same error...please help
Yum repo is miss-configured. check yum repo config and correct it. If it is pointing to Online repo you have to have internet connection.
@@TechArkit it actually worked when i checked again the configuration of the local repo file.
And i was not aware that in RHEL8 we need to copy both the directories in VM.
Got to know from your video..thanks.
I am able to install packages now.
@@gautamsehgal7730 Excellent.
I have a problem that 0 files removed is showing but you have 12 files removed
it depends
@@TechArkit later it shows some error during the command yum install app
It can't load appstream
hey Arkit when i am doing yum repolist I dont see the status column i have rhel 8 please tell me what to do ?
post me the output of yum repolist here.
@@TechArkit sir the problem is in 8.0.0 version it shows the number in status
While in 8.3.0 it's show enable in status column
I got the solution
@@TechArkit I have one more issue that I have posted on telegram group please check that
Hey man thanks for the video i have a question in the exam the installation/source disk of the repository already mounted? Or do i have to insert it how does it work?
In Exam They will provide the appropriate server links you need to configure yum repository.
@@TechArkit do i have to create appstream with that link or just baseos
The same as in the video but instead of file use http?
@@iragubenko4815 If it sis RHEL 8 you need to create both.
Did you guys figure out how to create repo from http?
What about if we want to install package from the internet? How can we set up both offline and online repo simultaneously?
add multiple repo files under /etc/yum.repos.d/ based on requirement enable and disable the repos using yum command.
@@TechArkit can you make a video on this? I didn't find it in your playlist. FYI, I did RHCE on version 6 and things have changed drastically.
@@catchmeifyoucan_2024 You can take advantage of the "priority plugin" where you can set priorities to the repos and the lower the priority value the higher the priority of that repo. You can set the "offline" repo as higher priority, online repo as lower priority and if the offline repo can't satisfy the yum need it fail and it will try the next priority repo. I hope this helps.
@@ErsinGokay is there any video tutorial or blog on it?
Getting an error -Repository "diskcontent" is missing name in configuration, using id
Failed to synchronize for Repo "Appstreams", ignoring this repo
Failed to synchronize for repo "BaseOS" ignoring this repo
Can you post the YUM Repo config file and where did you copy the ISO files.
ls -ltr /etc/yum.repos.d/
ls -ltr /CopiedRPMSpath/
@@TechArkit I am not able to paste content from VM, I have typed them.
view /etc/yum.conf
[main]
gpgcheck=1
installonly_limit= 3
clear_requirements_on_remove=True
best=True
wc -l /etc/yum.conf
5
---------------------------------------------------------------------
ls -lrt /etc/yum.repos.d (only files name)
all the below files have 644 perms
CentOS-Vault.repo
CentOS-Sources.repo
CentOS-PowerTools.repo
CentOS-Media.repo
CentOS-fasttrack.repo
CentOS-Extras.repo
CentOS-Debuginfo.repo
CentOS-CR.repo
CentOS-centosplus.repo
CentOS-Base.repo
CentOS-Appstreme.repo
BaseOS.repo (created this repo file)
----------------------------------------------------------------------
vi Baseos.repo
[diskcontent]
Name = "BaseOS Repo"
baseurls = file:///run/media/anindya/CentOS-8-BaseOS-x86_64/BaseOS/
enabled =1
----------------------------------------------------------------------
df -h
/dev/src0 mounted on /run/media/anindya/CentOS-8-BaseOS-x86_64/
---------------------------------------------------------------------
could not copy the BaseOS and Appstream into a single folder, it was taking huge time and system hung every time.
@@anindyabhattacharya4878 copy 1 by 1
No need to make two different repo. U can put entry in a single repo file
Best practice is to creating separate repo files. Later point of time if you would like to troubleshoot repository issues its quiet difficult if in single file.
not able to understand your video..too fast..
Sorry to hear that
R u taking any online class ??? So that I can attend it
I will but now there are no batches scheduled
I am preparing for rhcsa exam, I wants to know if Ldap, autofs are part of rhcsa rhel8 exam ?
Yes, LDAP is part of RHCSA and AutoFS is part of RHCE
Thank you
@@datta5188 It is actually NOT in RHCSA 8 (LDAP), read the Exam Objectives for that
Marcel Lans bro please send me the rhcsa 8 exam objectives
@@santhosh8623 search in Google for ex200v8k exam objectives. Redhat.com/en/services/training/ex200-red-hat-certified-system-administrator-rhcsa-exam if you see for example layered storage.... You found IT... In the create fa part
not work error is coming
Check your repo config properly, any spelling mistakes.
@@TechArkit appstream is not working on rhel 8 I configure ftp but I can't configure yum and yum.repo
@@hrfighter7980 You have to create yum repo file in client side. ftp://yum-serverip/appstream ftp://yum-serverip/baseos
Server side: /var/ftp/pub/appstream /var/ftp/pub/baseos
Not good understanding keep try totally rubbish
May i know what is subject is rubbish here?? i think you did noy understand the topic. See the video again in 2x speed.
Video quality is very bad
its may be your slow internet connection speed. Its full HD video as of now no complains about quality.
I know this video is old but can we use a webserver and make the URL HTTP://servername/repolocation?
There is another video in same channel.
I deleted /yum.repos.d/
What do i do jow?
Re-Create it.
sir i am using vmware and not geting any appstream and baseos file in redhat 8
my /mnt is empty
please help me to resolve this problem
You have to mount ISO file or DVD media to the server and configure yum repo.
@@TechArkit can you make a video on this