# While istalling any package i am getting and error

**URL:** <https://forums.rockylinux.org/t/while-istalling-any-package-i-am-getting-and-error/10301>\
**Category:** Rocky Linux Help & Support\
**Created:** [June 15, 2023, 2:22pm UTC](https://forums.rockylinux.org/t/while-istalling-any-package-i-am-getting-and-error/10301 "2023-06-15T14:22:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rakesh](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rakesh](https://forums.rockylinux.org/u/rakesh)\
**Post date:** [June 15, 2023, 2:22pm UTC](https://forums.rockylinux.org/t/while-istalling-any-package-i-am-getting-and-error/10301/1 "2023-06-15T14:22:39Z")

</div>

I am using Rocky Linux 9, if i install any packages i am getting an error stating that.

Error: There are no enabled repositories in “/etc/yum.repos.d”, “/etc/yum/repos.d”, “/etc/distro.repos.d”.

But in the repository path i can see the repos config file.

total 32  
-rw-r–r–. 1 root root 1552 Apr 14 17:22 epel-testing.repo  
-rw-r–r–. 1 root root 1457 Jun 14 01:01 epel.repo  
-rw-r–r–. 1 root root 6586 Apr 27 01:35 rocky-addons.repo  
-rw-r–r–. 1 root root 1161 Apr 27 01:35 rocky-devel.repo  
-rw-r–r–. 1 root root 2385 Jun 14 01:01 rocky-extras.repo  
-rw-r–r–. 1 root root 3414 Jun 14 01:01 rocky.repo  
-rw–w----. 1 root root 280 Jun 15 01:04 sdcss.repo

Can any one help me on this issue

---

<div class="post-metadata">

**Author:** ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)\
**Post date:** [June 15, 2023, 2:25pm UTC](https://forums.rockylinux.org/t/while-istalling-any-package-i-am-getting-and-error/10301/2 "2023-06-15T14:25:18Z")

</div>

Even though repositories may exist, it does not mean they are enabled. You or another user likely went and set `enabled=0` under each repository. I would see [this page](https://wiki.rockylinux.org/rocky/repo/#base-repositories) for information on what repositories are typically enabled by default on Rocky Linux.

---

<div class="post-metadata">

**Author:** ![Zabbix112](https://avatars.discourse-cdn.com/v4/letter/z/f6c823/32.png) [@Zabbix112](https://forums.rockylinux.org/u/Zabbix112)\
**Post date:** [June 15, 2023, 2:29pm UTC](https://forums.rockylinux.org/t/while-istalling-any-package-i-am-getting-and-error/10301/3 "2023-06-15T14:29:05Z")

</div>

`dnf repolist all` will how you all the repo’s that are enabled

---

<div class="post-metadata">

**Author:** ![rakesh](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rakesh](https://forums.rockylinux.org/u/rakesh)\
**Post date:** [June 15, 2023, 2:29pm UTC](https://forums.rockylinux.org/t/while-istalling-any-package-i-am-getting-and-error/10301/4 "2023-06-15T14:29:39Z")

</div>

So I need to change from enabled=0 to enabled=1 on each repository?

---

<div class="post-metadata">

**Author:** ![rakesh](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@rakesh](https://forums.rockylinux.org/u/rakesh)\
**Post date:** [June 15, 2023, 2:41pm UTC](https://forums.rockylinux.org/t/while-istalling-any-package-i-am-getting-and-error/10301/5 "2023-06-15T14:41:22Z")

</div>

Thanks @label , after enabling to 1 i can able to sync the repo & can install the packages.

---

<div class="post-metadata">

**Author:** ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)\
**Post date:** [August 25, 2023, 3:10am UTC](https://forums.rockylinux.org/t/while-istalling-any-package-i-am-getting-and-error/10301/6 "2023-08-25T03:10:25Z")

</div>


