LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cent_os to Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/cent_os-to-ubuntu-4175549348/)

Nitin.pant 07-30-2015 08:17 AM

Cent_os to Ubuntu
 
Hi All,
I want that my all ubuntu system should update or even install there packages in my Cent_os server Through yum repository. How'z it worked.

wesaus32 07-30-2015 12:02 PM

If I understand what you are asking correctly, you cannot install the packages from the Cent OS via yum on Ubuntu. Yum is the tool used for distros that use RPM. Ubuntu uses tools like apt-get and aptitude to install .deb packages. You are welcome to convert RPM packages to DEB packages or just find the equivalent package you want (i.e there is a RPM package you want ... find the same package in deb format). Alternatively, you can always build from source. Good luck.

jslobotski 07-30-2015 04:13 PM

Yea as wesaus32 stated, those are two completely different package managers. Packages from yum are not compatible with the apt-get manager and vise versa.

Take a look here http://how-to.linuxcareer.com/compar...gement-systems

It talks about the apt, yum, pacman, and portage package managers.

suicidaleggroll 07-30-2015 04:43 PM

Not going to happen. Produce a list of the packages installed via yum on your centos machine, find the apt equivalents, and then use apt-get to install them on Ubuntu from the Ubuntu repository.

Nitin.pant 07-31-2015 12:30 AM

Thanks to all for your interest in my post.
I am follow all procedure in making yum server in cent_os and also stored there .deb packages.
Through ftp it will be connected but i want to that my ubuntu system get all packages through yum as like rhel or cent_os worked..

PLease all suggested me asap..

Nitin.pant 07-31-2015 01:08 AM

Quote:

Originally Posted by wesaus32 (Post 5398401)
If I understand what you are asking correctly, you cannot install the packages from the Cent OS via yum on Ubuntu. Yum is the tool used for distros that use RPM. Ubuntu uses tools like apt-get and aptitude to install .deb packages. You are welcome to convert RPM packages to DEB packages or just find the equivalent package you want (i.e there is a RPM package you want ... find the same package in deb format). Alternatively, you can always build from source. Good luck.

wesaus32,
Thank you for that information. Tell me that how get the packages through apt-get command.

ondoho 07-31-2015 08:23 AM

nitin.pant, which operating system is installed?

suicidaleggroll 07-31-2015 08:50 AM

Quote:

Originally Posted by Nitin.pant (Post 5398720)
i want to that my ubuntu system get all packages through yum as like rhel or cent_os worked.

As you've been told repeatedly - Ubuntu does not use yum. It doesn't matter how many times you ask, it's not going to happen. Also, you WILL brick your system if you attempt to convert your centos rpm packages to deb and install them on Ubuntu, do not do it.

As I said before:
Quote:

Originally Posted by suicidaleggroll (Post 5398573)
Produce a list of the packages installed via yum on your centos machine, find the apt equivalents, and then use apt-get to install them on Ubuntu from the Ubuntu repository.


suicidaleggroll 07-31-2015 08:55 AM

Quote:

Originally Posted by Nitin.pant (Post 5398729)
wesaus32,
Thank you for that information. Tell me that how get the packages through apt-get command.

http://www.howtogeek.com/63997/how-t...-command-line/

Ihatewindows522 07-31-2015 11:13 AM

The yum equivalent on Ubuntu is apt-get. So you might have used something like
Code:

sudo yum install package
on Ubuntu you will use
Code:

sudo apt-get install package
Ubuntu and CentOS are not binary compatible, so not only are the package managers different, but the whole package architecture is different. Each application will likely have different perquisites and even a different folder structure. So even if you did manage to get yum running on Ubuntu, like suicidaleggroll said, bank on fracking up your system.

If you have no clue what I'm talking about, read this.

Hope that clears this up.

Nitin.pant 08-01-2015 09:18 PM

Quote:

Originally Posted by ondoho (Post 5398880)
nitin.pant, which operating system is installed?

In my server side i used centos and we have client ubuntu.

Nitin.pant 08-01-2015 09:28 PM

Quote:

Originally Posted by suicidaleggroll (Post 5398896)
As you've been told repeatedly - Ubuntu does not use yum. It doesn't matter how many times you ask, it's not going to happen. Also, you WILL brick your system if you attempt to convert your centos rpm packages to deb and install them on Ubuntu, do not do it.

As I said before:

As you said, i understand what you said but my question is. I want my ubuntu dont get any packages through online they should get there all packages form server.i.e centos

suicidaleggroll 08-01-2015 10:49 PM

Then set up a local apt-get repository. There are numerous guides online showing how to do it.


All times are GMT -5. The time now is 07:38 AM.