Oxxus Java Hosting techblog – Just about something for everyone News, reviews, tutorials brought to you by web hosting tech support

1Jul/110

yum vs apt-get differences

Hope you all, readers, had a great day so far.

I want today to present yum vs apt-get differences. I'm sure a lot of users use Fedora Core, and are thinking about switching to Ubuntu or Debian.

The major difference between these systems is your ultimate application for installing, updating and managing packages for the distribution.

 

For those users who are switching from Fedora to Ubuntu, the yum tool is replaced with another great tool apt-get.

 

Installing is basically the same, you do 'yum install package' or 'apt-get install package' you get the same result.

Yum automatically refreshes the list of packages, whilst with apt-get you must execute a command 'apt-get update' to get the fresh packages.

Another difference is upgrading all the packages. With yum you did 'yum upgrade' and with apt-get you get a new option 'apt-get dist-upgrade' which will hopefully upgrade your whole distribution.

 

There are a few more tips for apt-get which I will name briefly here:

dpkg --list (to get the list of packages), apt-cache search [package_name], apt-get clean (to get packages removed from the local cache directory), etc.

 

Finally, I wanted to mention that apt-get mostly works with .deb packages, though the tool can be installed on Fedora distribution to serve .rpm as well.

Its configuration is served from /etc/apt/ and there you will find sources.list with respective repositories for packages needed for user's proffered distribution.

 

I probably forgot to mention some other important differences, so feel free to correct me and drop a comment.

 

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

(required)

No trackbacks yet.