LinuxQuestions.org
Help answer threads with 0 replies.
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 01-11-2009, 01:00 PM   #1
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Rep: Reputation: 31
build and install rpm or bz2


Hi,
I've been trying to install a small python file to get and install various codecs. I am running the latest Ubuntu ver. and in spite of man/rpm page reading etc. I bump into a brick wall.

E.g. :

"root@mjh-laptop:/home/mjh# apt-get install file:///home/mjh/getcodecs-1.0.1-2.src.rpm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package file:"

The same error occurs when I type:
"root@mjh-laptop:/home/mjh# apt-get install file:///home /mjhgetcodecs-1.0.1.tar.bz2 "
Searching previously asked similar questions I gather that the verbage has changed from rpm -i to rpmbuild...

I tried that and now get a different Error:
"root@mjh-laptop:/home/mjh# rpmbuild getcodecs-1.0.1-2.src.rpm error: File /home/mjh/getcodecs-1.0.1-2.src.rpm does not appear to be a specfile.
root@mjh-laptop:/home/mjh# "


Obviously, I am short on experience building/installing these things, any suggestions?
Since this is a small program, I have downloaded all three interations of it, viz. bz2; noarch.rpm; src.rpm
No luck with any of them.
Matthew
 
Old 01-11-2009, 02:44 PM   #2
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
RPM packages are for Redhat/Fedora or Suse,not Ubuntu or Debian.
The apt-get command is used for installing packages from the repositories,as listed in /etc/apt/sources.list.
I found the following how-to for installing software in Ubuntu:

https://help.ubuntu.com/community/InstallingSoftware

This explains how to install software via the package manager,which is generally the recommended way.
It also shows you how to install .deb packages(the Debian/Ubuntu equivalent of rpm files).

Regards.
The trooper
 
Old 01-11-2009, 03:20 PM   #3
fosopip
LQ Newbie
 
Registered: Jun 2008
Posts: 6

Rep: Reputation: 0
thanks for the link trooper as a new boy I take all the help I find
 
Old 01-11-2009, 03:25 PM   #4
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
Quote:
Originally Posted by fosopip View Post
thanks for the link trooper as a new boy I take all the help I find
You're welcome.
 
Old 01-11-2009, 05:32 PM   #5
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Original Poster
Rep: Reputation: 31
Thanks,
Sometimes (often!) the answers are closer than one thinks.
I've bookmarked the page for the future and have solved my download dilemna already.
Matthew
 
Old 01-11-2009, 06:32 PM   #6
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Jessie Amd64
Posts: 1,477

Rep: Reputation: Disabled
What did you do to resolve the problem?
 
Old 01-15-2009, 03:05 PM   #7
drmjh
Member
 
Registered: Mar 2005
Location: North Carolina, USA
Distribution: Ubuntu
Posts: 308

Original Poster
Rep: Reputation: 31
Ubuntu uses .deb packages as an installation container. As noted above, .rpm packages are the province for different distros such as red hat, suse etc.
Ubuntu has a method for installing these alien types of packages. The command is appropriately "alien"

TO Install a NON-.deb package like .rpm, use the alien command:
"sudo alien -i name_of_packg.rpm"

Matthew
 
  


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
build a debian package deb from tar.bz2 cccc Debian 6 09-17-2009 04:44 PM
no kernel module build environment" Error message during RPM install gotmonkey Linux - Hardware 7 12-07-2007 03:08 AM
How can I generate / build and RPM from *.src.rpm file sreekumartg Red Hat 3 02-23-2007 06:23 PM
how can i install wine from a .bz2 or .rpm file Norin311 Linux - Software 7 09-09-2004 06:32 AM
Not able to install rpm-build package deepika Linux - Newbie 2 07-19-2003 10:45 PM


All times are GMT -5. The time now is 06:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration