LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-27-2017, 11:29 PM   #1
mc_intosh
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Rep: Reputation: Disabled
Yum on Ubuntu


Hello guys i need help with yum on Ubuntu. i have installed several servers to test it with centos 6,7,Ubuntu and Debian. i created ftp yum repository in centos 6 and already connected all of them except Ubuntu and debian i cant find where i can add the yum. in centos /etc/yum.repos.d but Ubuntu totally different i tried to install other packages from Ubuntu but it say no command found for all command it means no yum repo at all , its minimal ubuntu,also tried sudo add-apt-repository the output comes as :Error need repository as argument
thanks in advance.
 
Old 06-27-2017, 11:37 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Yum for Debian needs to be a Debian package. Also, yum is a front end for rpm, which Debian doesn't use.
 
Old 06-27-2017, 11:40 PM   #3
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,018
Blog Entries: 27

Rep: Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523
You'll need to install yum and rpm before you can use yum with rpm's on Ubuntu (assuming it still has the packages from Debian).
Code:
apt install yum rpm
Note: I don't use Ubuntu if I can help it, so I'm basing this off Debian.

Note 2: I've never done this, but considering how different Ubuntu is compared to rpm distro's, I can't see this working out very well. I imagine there will be many package conflicts long-term.

Last edited by Timothy Miller; 06-27-2017 at 11:41 PM.
 
Old 06-28-2017, 12:00 AM   #4
mc_intosh
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
yeah i think im just waiting time with rpm on Ubuntu, thanks anyway.
2nd question ? all servers are minimal and only ,one machine GUI test machine i created, and im testing there. Im ssh keygen to all machine but Ubuntu doesnt accepting says connection refused no route to 22 , i add pport 22 on iptables still nothing. pinging works for both machine its going thru. and one more thing that from ubuntu i can ssh to GUI test machine. but test machine cant access to Ubuntu.
i tried to stop iptables , tried to permissive selinux but nothing.

Last edited by mc_intosh; 06-28-2017 at 12:01 AM.
 
Old 06-28-2017, 12:07 AM   #5
mc_intosh
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
by the way my Debian server says :Unable to locate package yum it means i have repolist 0 right.?
on my servers there is no internet only local machines in one subnet, when im typing apt-get install it tries to get from outside(from internet) but by default it has to be his local repo right? i didnt live that much trouble in centos
also i need to give my ftp path for repo this is confuses me much. i dont knot where the repo files in Debian ?
 
Old 06-28-2017, 08:47 AM   #6
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,018
Blog Entries: 27

Rep: Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523Reputation: 1523
/etc/apt/sources.list & /etc/apt/sources.list.d/*

Instructions for setting up an offline repository https://help.ubuntu.com/community/Ap...ine/Repository
 
1 members found this post helpful.
Old 06-28-2017, 08:55 AM   #7
sgrlscz
Member
 
Registered: Aug 2008
Posts: 123

Rep: Reputation: 84
Quote:
Originally Posted by mc_intosh View Post
yeah i think im just waiting time with rpm on Ubuntu, thanks anyway.
2nd question ? all servers are minimal and only ,one machine GUI test machine i created, and im testing there. Im ssh keygen to all machine but Ubuntu doesnt accepting says connection refused no route to 22 , i add pport 22 on iptables still nothing. pinging works for both machine its going thru. and one more thing that from ubuntu i can ssh to GUI test machine. but test machine cant access to Ubuntu.
i tried to stop iptables , tried to permissive selinux but nothing.
A minimal install of Ubuntu doesn't contain the ssh server. You need to install the openssh-server package.
 
Old 06-30-2017, 04:58 PM   #8
mc_intosh
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
thanks !
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: DNF (Dandified yum), the next generation of yum package manager (Fork of Yum) for Fedora system LXer Syndicated Linux News 0 08-07-2016 06:12 PM
Yum repository on Ubuntu possible ? tewtechie25 Linux - Newbie 24 05-29-2013 02:23 PM
how to install yum in ubuntu 11? nmp12345678 Linux - Newbie 1 01-14-2012 01:10 AM
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 12:25 PM
fedora vs. ubuntu and yum vs. synaptic conanm4 Linux - Distributions 5 08-05-2006 03:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:11 AM.

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