My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
How do I list installed packages from a specific repo?
poc
On 11/10/18 8:32 PM, Patrick O'Callaghan wrote:
My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
How do I list installed packages from a specific repo?
Well, without reading the man page, one can simply do "dnf list installed" and then grep on the repo name since it is tacked on to the listed item.
Do be aware that some will be @updates if they were updated since the release.
On Sat, 2018-11-10 at 20:42 +0800, Ed Greshko wrote:
On 11/10/18 8:32 PM, Patrick O'Callaghan wrote:
My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
How do I list installed packages from a specific repo?
Well, without reading the man page, one can simply do "dnf list installed" and then grep on the repo name since it is tacked on to the listed item.
I've read the man page (and the rpm page), hoping there was a more direct way but nothing jumped out. I'll have another look.
poc
On 11/10/18 9:38 PM, Patrick O'Callaghan wrote:
On Sat, 2018-11-10 at 20:42 +0800, Ed Greshko wrote:
On 11/10/18 8:32 PM, Patrick O'Callaghan wrote:
My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
How do I list installed packages from a specific repo?
Well, without reading the man page, one can simply do "dnf list installed" and then grep on the repo name since it is tacked on to the listed item.
I've read the man page (and the rpm page), hoping there was a more direct way but nothing jumped out. I'll have another look.
I may have stated that somewhat badly. I'm the one not reading the man page. :-)
On Sat, 2018-11-10 at 22:16 +0800, Ed Greshko wrote:
On 11/10/18 9:38 PM, Patrick O'Callaghan wrote:
On Sat, 2018-11-10 at 20:42 +0800, Ed Greshko wrote:
On 11/10/18 8:32 PM, Patrick O'Callaghan wrote:
My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
How do I list installed packages from a specific repo?
Well, without reading the man page, one can simply do "dnf list installed" and then grep on the repo name since it is tacked on to the listed item.
I've read the man page (and the rpm page), hoping there was a more direct way but nothing jumped out. I'll have another look.
I may have stated that somewhat badly. I'm the one not reading the man page. :-)
No problem, that's how I understood your comment.
poc
On 10/11/18 12:42, Ed Greshko wrote:
On 11/10/18 8:32 PM, Patrick O'Callaghan wrote:
My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
How do I list installed packages from a specific repo?
Well, without reading the man page, one can simply do "dnf list installed" and then grep on the repo name since it is tacked on to the listed item.
Do be aware that some will be @updates if they were updated since the release.
I have this squirrelled away from a similar query long ago. It's not something that comes immediately to mind.
Identify rpms from a specific source; here Nux!
rpm -qa --qf " %{NAME}\t%{VENDOR}\n " | grep -i Nux!
John P
On Sat, 2018-11-10 at 13:59 +0000, John Pilkington wrote:
On 10/11/18 12:42, Ed Greshko wrote:
On 11/10/18 8:32 PM, Patrick O'Callaghan wrote:
My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
How do I list installed packages from a specific repo?
Well, without reading the man page, one can simply do "dnf list installed" and then grep on the repo name since it is tacked on to the listed item.
Do be aware that some will be @updates if they were updated since the release.
I have this squirrelled away from a similar query long ago. It's not something that comes immediately to mind.
Identify rpms from a specific source; here Nux!
rpm -qa --qf " %{NAME}\t%{VENDOR}\n " | grep -i Nux!
That's useful, thanks.
poc
Patrick O'Callaghan wrote:
My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
Depends on your definition of "need". On f29+ modular features are enabled by default, https://fedoraproject.org/wiki/Changes/ModulesForEveryone
You can certainly disable the repo(s) if you know you don't want or need them. Not knowing what they're for is probably not good enough reason to disable it though.
How do I list installed packages from a specific repo?
This may get you step in the right direction:
rpm -q -f /etc/yum.repos.d/*.repo
will tell you which packages own each .repo file
-- Rex
Rex Dieter wrote:
Patrick O'Callaghan wrote:
How do I list installed packages from a specific repo?
This may get you step in the right direction:
rpm -q -f /etc/yum.repos.d/*.repo
will tell you which packages own each .repo file
Just occurred to me I misread your question, so gave a bad answer. sorry. See Ed's answer to this one, much better.
-- Rex
On Sat, 2018-11-10 at 07:47 -0600, Rex Dieter wrote:
Patrick O'Callaghan wrote:
My repos directory has accumulated a lot of cruft over the years, things like unused COPR repos etc., so I wanted to clean it out. I have a couple of questions:
Do I need both fedora-* and fedora-*-modular repos?
Depends on your definition of "need". On f29+ modular features are enabled by default, https://fedoraproject.org/wiki/Changes/ModulesForEveryone
You can certainly disable the repo(s) if you know you don't want or need them. Not knowing what they're for is probably not good enough reason to disable it though.
According to the above link:
Beginning with Fedora 29, all installations of Fedora will have modules available for installation and update. This will be done by merging the fedora-repos-modular sub-package back into the fedora- repos package.
Furthermore, 'dnf list modules --installed' returns nothing, so I guess I can just remove those repos.
poc
On 11/10/18 2:22 PM, Patrick O'Callaghan wrote:
According to the above link:
Beginning with Fedora 29, all installations of Fedora will have modules available for installation and update. This will be done by merging the fedora-repos-modular sub-package back into the fedora- repos package.
Furthermore, 'dnf list modules --installed' returns nothing, so I guess I can just remove those repos.
I would suggest just disabling them if it bothers you that much. If you remove them, they will get restored the next time the repos package is updated.
On Sat, 2018-11-10 at 15:27 -0800, Samuel Sieb wrote:
On 11/10/18 2:22 PM, Patrick O'Callaghan wrote:
According to the above link:
Beginning with Fedora 29, all installations of Fedora will have modules available for installation and update. This will be done by merging the fedora-repos-modular sub-package back into the fedora- repos package.
Furthermore, 'dnf list modules --installed' returns nothing, so I guess I can just remove those repos.
I would suggest just disabling them if it bothers you that much. If you remove them, they will get restored the next time the repos package is updated.
Agreed. I assume that in some future Fedora they'll just disappear. Currently none of my 4902 installed packages come from these repos.
poc
On 11/11/18 2:37 AM, Patrick O'Callaghan wrote:
On Sat, 2018-11-10 at 15:27 -0800, Samuel Sieb wrote:
I would suggest just disabling them if it bothers you that much. If you remove them, they will get restored the next time the repos package is updated.
Agreed. I assume that in some future Fedora they'll just disappear. Currently none of my 4902 installed packages come from these repos.
They are very unlikely to disappear, they're part of the new modularity plan. None of your currently installed packages are from them because you haven't installed any modules yet.
On Sun, 2018-11-11 at 13:27 -0800, Samuel Sieb wrote:
On 11/11/18 2:37 AM, Patrick O'Callaghan wrote:
On Sat, 2018-11-10 at 15:27 -0800, Samuel Sieb wrote:
I would suggest just disabling them if it bothers you that much. If you remove them, they will get restored the next time the repos package is updated.
Agreed. I assume that in some future Fedora they'll just disappear. Currently none of my 4902 installed packages come from these repos.
They are very unlikely to disappear, they're part of the new modularity plan. None of your currently installed packages are from them because you haven't installed any modules yet.
I misread the document cited by Rex. It refers to 'fedora-repos- modular' being merged into 'fedora-repos', not to 'fedora-modular-*' merging with 'fedora-*.
poc