Ask Your Question
3

What's the difference between terminal and the Software center update processes?

asked 2016-10-03 09:59:37 -0500

rjltrevisan gravatar image

Hello,

I just did a fresh Fedora 24 install. Then I opened the Software center and told it to update. After a long time of it saying that it was updating, it finished and said that all was updated now. I rebooted and then opened the terminal and did the sudo dnf update command and it found a lot of things to update (more than 700 MB). I updated everything and rebooted. And now if I check the Software center and the Terminal, they both say that all is update.

The question is: Wasn't the Software center supposed to have done all the upgrades the first time? And if it updated anything, how come there were still 700 MB+ of updates when I went to the Terminal?

edit retag flag offensive close merge delete

Comments

With terminal you mean using dnf in a terminal window?

florian gravatar imageflorian ( 2016-10-05 20:19:29 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2016-10-05 11:41:10 -0500

florian gravatar image

updated 2016-10-05 11:48:29 -0500

Good question! First of all, the repositories that are used by both softwares (dnf and gnome-software) are the same. (Repository files are located in /etc/yum.repos.d/)

Differences: Gnome Software (GUI) uses PackageKit (backend), which does not share the same metadata-database. That causes problems, especially when installing software because one doesn't know what the other did. It can leave your system in an inconsistent state. That is why I would recommend not to use Gnome-Software at all - I even disabled/masked the PackageKit service, despite reports that an online update using dnf may brick your system. The "offline" updater that they recommend is the PackageKit-based Restart & Install Updates that you will see in Gnome. (I reduce the risk of a interupting a dnf transaction (by crashing X, or gnome-terminal or such) by running it in a Virtual Terminal (CTRL+ALT+F3).

The likely reason why your dnf saw 700 MB of updates, while Gnome Software didn't, was probably because dnf had refreshed metadata from the server and GnomeSoftware/ PackageKit hadn't yet. You can force PackagKit to update by running pkcon refresh force. After that GnomeSoftware should "see" the updates as well.

edit flag offensive delete link more

Comments

im down 10 points now :( :( i was just trying to help

TWTOoth gravatar imageTWTOoth ( 2016-10-05 15:06:01 -0500 )edit
0

answered 2016-10-05 07:58:06 -0500

TWTOoth gravatar image

it has something to do with software Repositories, although your updates using GUI might fail sometimes or its not as good as using the terminal "i mean 700MB that is too much to be ignored if they are pulling data from different Repositories" read this article for far more details https://fedoraproject.org/wiki/Reposi... Hope this helps

edit flag offensive delete link more

Comments

But which of these repositories does the GUI and the Terminal use, respectively?

rjltrevisan gravatar imagerjltrevisan ( 2016-10-05 08:13:47 -0500 )edit

Go to /etc/yum.repos.d/ and take a look to each of the .repo files (esp. fedora.repo and *fedora-updates.repo). If you open them and you see ENABLED=1 then both dnf and Gnome Software "use" them

florian gravatar imageflorian ( 2016-10-05 20:17:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2016-10-03 09:59:37 -0500

Seen: 731 times

Last updated: Oct 05 '16