How to find all packages installed from repos other than Fedora
FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to find all packages installed from repos other than Fedora
Hello All,
Whilst I am pretty sure that I know what I have built and installed locally, as well as packages from repos other than Fedora, it would be good to be able to find and confirm what they are.
Is there a dnf (or other) command that I can use to do this?
I would rather say you can list all of your packages and grep out the "official" ones (you can get the list of available packages of all your repos)
OK, that may work but does seem like it might be a bit cumbersome. I'm not really sure how I would do that as yet.
Is there no way one can list packages installed from @commandline, to at least catch all the local builds?
Shows all the packages from repos other than "fedora" or "updates". Assumes the script is named "reposhow", of course. The quotes are needed to get the exclamation point past the shell. It's just a quickie I've been using. I make no claims of robustness or portability.
Here's a script that uses awk to parse the output from "yum history pkg-info".
Example usage:
Code:
reposhow '!fedora,updates'
Shows all the packages from repos other than "fedora" or "updates".
Doesn't work here on F22, here is the output from that script...
[terry@localhost ~]$ ./reposhow.sh '!fedora, updates'
Yum command has been deprecated, redirecting to '/usr/bin/dnf history pkg-info *'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
Invalid history sub-command, use: list, info, redo, undo, rollback, userinstalled.
Doesn't work here on F22, here is the output from that script...
[terry@localhost ~]$ ./reposhow.sh '!fedora, updates'
Yum command has been deprecated, redirecting to '/usr/bin/dnf history pkg-info *'.
See 'man dnf' and 'man yum2dnf' for more information.
To transfer transaction metadata from yum to DNF, run:
'dnf install python-dnf-plugins-extras-migrate && dnf-2 migrate'
Invalid history sub-command, use: list, info, redo, undo, rollback, userinstalled.
As I said, no guarantee of portability. I've been using it with yum on CentOS. You would need to find a dnf equivalent for "yum history pkg-info" and probably adjust the awk script since the format of the output is likely to be different.
As I said, no guarantee of portability. I've been using it with yum on CentOS. You would need to find a dnf equivalent for "yum history pkg-info" and probably adjust the awk script since the format of the output is likely to be different.
OK, thanks.
I'll just have to hope someone who knows can do that, as I have no idea.
The dnf repository-packages command may do what you want. For example, to find all packages you installed from a repository, something like
<quote>dnf repository-packages google-chrome info installed</quote>
Change installed to available to see packages you haven't installed from the repository.
The dnf repository-packages command may do what you want. For example, to find all packages you installed from a repository, something like
<quote>dnf repository-packages google-chrome info installed</quote>
Change installed to available to see packages you haven't installed from the repository.
Thanks for that.
If I use "sudo dnf repository-packages @commandline info installed"
it reports everything I've installed from local builds...just the thing to track them all down and prepare properly prior to running fedup.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.