LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-12-2016, 10:14 AM   #1
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Rep: Reputation: 18
dnf plug-in instead of yum


Hi-

I cleaned things up a bit. Now when I use dnf remove package, I get the other packages listed like in tidy and libtidy. I think the problem might be that my updates got interrupted once. I went through and deleted each package listed in package-cleanup --leaves.

Now my question is it is telling me package-cleanup is a yum command and I am trying to figure out if there is an exact replacement and how to install it with dnf that yields the same results as package-cleanup?

Please assist if you know what I am referring to. <see below>

thx- jim


Complete!
[root@new-host-9 ~]# package-cleanup --leaves

Yum-utils package has been deprecated, use dnf instead.
See 'man yum2dnf' for more information.


[root@new-host-9 ~]# dnf remove tidy
Dependencies resolved.
==================================================================================================== ==================================
Package Arch Version Repository Size
==================================================================================================== ==================================
Removing:
libtidy x86_64 0.99.0-33.20091203.fc22 @fedora 388 k
tidy x86_64 0.99.0-33.20091203.fc22 @fedora 298 k

Transaction Summary
==================================================================================================== ==================================
Remove 2 Packages

Installed size: 686 k
Is this ok [y/N]: n
Operation aborted.
[root@new-host-9 ~]# dnf package-cleanup --leaves
No such command: package-cleanup. Please use /bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(package-cleanup)'"
 
Old 02-12-2016, 10:25 AM   #2
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
hi-

the package manager recognizes that libtidy also needs to be removed. I'd still like to know if and how to install the replacement for package-cleanup --leaves for dnf. If you know, and can help me get it installed that is very cool. However, for now, I am very happy my package manager is working again.

thx. again, jim
 
Old 02-12-2016, 10:27 AM   #3
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi-

A quick note, I tried yumex and it didn't know to remove libtidy. I am not certain why dnf knows and yumex doesn't. I can use dnf though for now.

thx.
 
Old 02-12-2016, 10:29 AM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
dnf repoquery --unneeded
 
1 members found this post helpful.
Old 02-12-2016, 10:41 AM   #5
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi Tim-

The command yielded this:

[root@new-host-9 ~]# dnf repoquery --unneeded
usage: dnf repoquery [--help-cmd] [--repo REPO] [--arch ARCH] [-f FILE]
[--whatprovides REQ] [--whatrequires REQ]
[--whatrecommends REQ] [--whatenhances REQ]
[--whatsuggests REQ] [--whatsupplements REQ] [--alldeps]
[--querytags] [--resolve] [--tree] [--srpm]
[-i | -l | -s | --qf QUERYFORMAT | --latest-limit LATEST_LIMIT]
[--duplicated | --installonly | --unsatisfied]
[--conflicts | --enhances | --obsoletes | --provides | --recommends | --requires | --suggests | --supplements]
[--available | --installed | --extras | --upgrades | --autoremove | --recent]
[key [key ...]]

I might be missing a package?

thx.
 
Old 02-12-2016, 10:45 AM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Yes, it does need that package. It's not a perfect solution, but if you remove a program and aren't sure everything it installed with it was removed, it'll work.
 
1 members found this post helpful.
Old 02-12-2016, 10:49 AM   #7
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Also, you can check dnf list autoremove to see if anything is listed there, as that will tell you what dnf autoremove would remove without actually calling autoremove.
 
1 members found this post helpful.
Old 02-12-2016, 10:53 AM   #8
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi Tim-


[root@new-host-9 ~]# dnf repoquery --unneeded

Error: unrecognized arguments: --unneeded

?
 
Old 02-12-2016, 11:03 AM   #9
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
hi-

just a quick thought, maybe i need to have python3-dnf-plugins-core etc. instead of python-dnf-plugins-core ...

thx
 
Old 02-12-2016, 11:14 AM   #10
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
HI Tim-

Maybe I need fedora 23 to run that command dnf repoquery --unneeded? I am using fedora 22.
I will update fedora 23 and try to rerun the command after the update. Maybe I will update tonight.

It didn't matter regarding python3-dnf...

thx. - jim
 
Old 02-12-2016, 11:15 AM   #11
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
Maybe, I THOUGHT they didn't add any new plugins to dnf with 23, but it's possible they did, I only half pay attention.
 
Old 02-12-2016, 04:21 PM   #12
mtdew3q
Member
 
Registered: Mar 2006
Location: the next town over from siberia
Distribution: xubuntu
Posts: 481

Original Poster
Rep: Reputation: 18
Hi Tim-

Hey - whatever magic that happened with the fedora 23 install lets me use dnf repoquery --unneeded to replace package-cleanup --leaves.

thx for telling me about this new command.

I am switching to dnf at the command-line. yumex on my system can't do that.

Everything seems to work except I have to reinstall my fancy mu or mu4e email system. It should be easy because i have the config files for emac and offlineimap.

Fri Feb 12 17:19:35 $ cat /etc/fedora-release
Fedora release 23 (Twenty Three)
Fri Feb 12 17:20:02 $ :-)

thx.! - j. mcnamara
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating dieskless filesystem using DNF/YUM niteshadw Fedora 1 08-26-2015 09:10 PM
Fedora 22 will use DNF instead of yum szboardstretcher Fedora 17 07-27-2015 09:17 PM
LXer: DNF - Next-Gen Yum Supports Plug-Ins, New Features LXer Syndicated Linux News 0 12-03-2013 10:21 PM
LXer: DNF and Hawkey, the next Generation Yum LXer Syndicated Linux News 0 10-19-2012 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration