[HOW TO] rpm auto install dependencies

Hello,

I have troubled with rpm. I must be installed once rpm but it can not get the dependencies.
How to resolve?

Googled, I found the solution:

1. Create a directory for your local repository e.g. /home/user/repo
2. move the rpm package to that directory
3. grant the permission for /home/user/repo
  #chmod -R root:root /home/user/repo
4. Install createrepo package and run the command:
  #createrepo /home/user/repo
5. Create a repository configuration
  #vi /etc/yum.repos.d/myrepo.repo
  #
  [local]
  name=My Awesome Repo
  baseurl=file:///home/user/repo
  enabled=1
  gpgcheck=0
6. Install package normally


Thank you for reading this article, please a comment if you are interested.

Tiến Phan - R0039

Knowledge is Endless

Sharing for Success

0 nhận xét:

Post a Comment