Yes. Check an example from
Kadischi documentation
Replace /tmp folder by your own. WIth more practice you will get used to.
Addendum:
- After you generated the directory for your packages, create a file.repo inside /etc/yum.repos.d/ with your name of choice.
- Here is an example of file.repo
Code:
[core]
name=Fedora Core $releasever - $basearch
baseurl=path/$releasever/$basearch/os/
#mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=core-$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY
- Baseurl is the path of your directory you want to use.
- Set enabled=1 and gpgcheck=0 if you don't want to check the keys
Hope it helps.