LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 02-10-2014, 06:54 AM   #1
Obsd
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Rep: Reputation: Disabled
Question About Yum


Good day

I have a question about Yum, how can i install some packages on a specific directory?

I'm trying to do it with icecast & shoutcast, and well, i ask this because i'm brand new on linux and like i can't find an answer to this questions before, well i venture to ask it.

Thanks you for everything

-Obsd-
 
Old 02-10-2014, 11:09 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
There is a command
yum --installroot=/full_path install package
but I doubt that it will actually work. If you look at a typical program with a command like this
rpm -qi firefox
the first line of the output reads
Name: firefox Relocations: (not relocatable)
which means just what it says. Most programs are packaged to go in a specific location.
 
Old 02-10-2014, 11:15 AM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
This is just an example but should help you to understand how to use YUM.

Let's say that you wanted to install a application called celestia. You would run: (as root)
Code:
yourname@localhost:$ yum install celestia
Yum will then install the application for you and if your running Fedora it will put the binary files in your /usr section because that's the default location.
 
Old 02-10-2014, 01:40 PM   #4
Obsd
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
So i really need to compile it on that folder to install it there?

How can i do that?
i read some examples... but i prefer to ask, Better Safe than Sorry aren't it?
 
Old 02-10-2014, 02:04 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
you might want to use a src rpm or source

for the above example "celestia"
grab the celestia svn code 5229 for " Celestia 1.7.0" fedora is using the VERY OLD and deprecated gnome2/gtk2/glut 1.6.1 )

and build the QT4 gui using qmake and the install location prefix
( the celestia.pro build file -- also requires cspice to have BEEN installed )


or rebuild the src.rpm using a new install location
( installing rpmbuild is REQUIRED)

or source

( install cspice FIRST http://naif.jpl.nasa.gov/naif/toolkit_C.html )

--- for AUTOTOOLS
Code:
svn checkout svn://svn.code.sf.net/p/celestia/code/trunk celestia
cp celestia celestia-build 
cd celestia-build

autoreconf -iv
./configure --prefix=/Your/Install/Location --with-lua --with-qt --with-cspice-dir=/opt/cspice

make -j3
su
---- root password
make install
this line
"--prefix=/Your/Install/Location"
sets the install location
redhat systems use the " /usr" ( this MUST BE ADDED in all redhat/fedora/cent builds)
Debian uses " /usr/local"
 
Old 02-10-2014, 02:52 PM   #6
Obsd
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
i use CentOS

but... yum not download it neither recognize it as a package...

So, can you put it on abstracta? something like "Noobrprove"? because,... no offence but i'm very nobish on linux, and i don't undestand anything (almost).

Sorry for ask you a simplier example or explanation, but i'am really newbie on this...

Thanks a lot for everything
 
Old 02-10-2014, 03:19 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
first using Centos is going to be very hard for a new to linux user
CentOS 6.5 is a FREE clone of RHEL 6.5
redhat 6.5 is a SERVER class operating system
it is targeted at
1) the server room
2) the corporate office
3) the laboratory ( like the other clone ScientificLinux 6.5)
4) the "workstation "
5 through every number
THE VERY LAST use " Home general purpose use "

cent uses the redhat documentation
and that documentation ASSUMES that you are a accredited ( experienced) redhat administrator
https://access.redhat.com/site/docum...erprise_Linux/

there is a wiki but it is MOSTLY for the old centos 5 OS ( with some centos 6 )
http://wiki.centos.org/

For other "guides" you AS the CentOS/RHEL/SL user need to PORT THEM FOR USE ON CENT
like the Mjmwired guides for Fedora
http://www.mjmwired.net/resources/mjm-fedora-f19.html
( you have to change the instructions FOR USE ON Cent/RHEL )


that above might take a year or so to learn

so for HOME use i would NOT !!!!!!!! recommend using centos

Now i do run ScientificLinux 6.5
BUT NOT as my everyday operating system !!!
( video - dvd,.wmv,.mp4,.avi,... and music support is NOT installed )
for that i run OpenSUSE 12.3


so
if you still want to use CentOS 6.5
go to the BOOK STORE ( brick and mortar or amazon or Barns and noble )
and BUY !!!!!!!!
one or more books

something like
"Red Hat Enterprise Linux 6 Essentials"
http://www.amazon.com/Red-Hat-Enterp...dp/B004GKNLXI/


or "Practical-Guide-Fedora-Enterprise-Linux"
http://www.amazon.com/Practical-Guid.../dp/0133477436



for installing software on CentOS 6.5
cent ONLY !!!!! ships with the base and update repos ( software repositories ) where the programs are located on the web

and that is VERY !!!! limited -- VERY LIMITED INDEED !!!
( think software NEEDED to ONLY run a headless server in a server room )
-- NO support for most music
no support for most video
and not much software

for that you need to install third party repos
see the WIKI page
http://wiki.centos.org/AdditionalResources/Repositories
and PAY ATTENTION!!!!!! to the WARNINGS !!!!!
and install set up "Priorities"
http://wiki.centos.org/PackageManagement/Yum/Priorities


you will need to do a lot of reading

Last edited by John VV; 02-10-2014 at 03:27 PM.
 
Old 02-10-2014, 03:40 PM   #8
Obsd
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks a lot

I guess i'm going to start then, i'm in fact working on a server right now

Thanks you,

btw, i'am finaly ending the instalation, i'm making a Shell to try to automatize the process in the most-possible-way, (for recovery propose)

I can finaly fix the problem, was very much easier than i thought, thanks a lot again for your help but i'm just for end the preparations to start the server, aparently i just need the finishing touches but the basic structure is almost done.

Yep, i very much solve the problem.


Thanks you again
and have a nice day!
 
Old 02-10-2014, 11:06 PM   #9
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by Obsd View Post
So i really need to compile it on that folder to install it there?

How can i do that?
i read some examples... but i prefer to ask, Better Safe than Sorry aren't it?
Configure talks to the script that will generate the make files where you want them to go.

If this is your first time at compilation take John VV's advice and do some reading.

This is a start-
http://www.thegeekstuff.com/2012/06/...l-from-source/
http://www.maximumpc.com/article/how...m_source_linux

--Scientific Linux is a recompiled Red Hat Enterprise Linux, co-developed by Fermi National Accelerator Laboratory and the European Organization for Nuclear Research (CERN)--
http://distrowatch.com/table.php?dis...ion=scientific
 
Old 02-11-2014, 12:10 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Are you asking this because you're used to the MSWin approach?

Linux doesn't work that way, although if you download and build/install src code from scratch, it is do-able...
However, its not trivial and if you're asking, then I'd highly recommend just letting yum do its thing.

Have a read of https://en.wikipedia.org/wiki/Filesy...archy_Standard and https://en.wikipedia.org/wiki/Linux_Standard_Base
 
Old 02-11-2014, 10:02 AM   #11
Obsd
LQ Newbie
 
Registered: Jan 2014
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks both of you,

And i'm actualy reading stuff right now, turns out than wasnt really necesary do it (for now at least) however...

I like to know now how i can "unzip" something on a determinated folder through terminal, i ask this because even meanwhile i can do this through Desktop for now, i really want to remove it in the long-term and create a sh to reemplace all the instalation process for the packages i'm installing now on CentOS.

Of course i wanna do all that process through terminal

and i like to know another stuff, you see, this process requeires configuration through web-browser, is there any web-browser for terminal than you can recomend me to use and set that configuration straight?

and you recommend leave it there after or just remove it after complete him's propose?

Thanks for everything

-Obsd-
 
  


Reply



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
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Software 2 03-30-2010 08:15 AM
how to update rhel 5 using centos yum updater without conflict with yum redhat plugin udayvikram Linux - Newbie 1 03-29-2010 12:56 PM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 02:34 AM
yum config error parsing file failed - yum won't run emuub Linux - Software 9 11-04-2008 05:48 AM

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

All times are GMT -5. The time now is 08:59 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