IT Community - Software Programming, Web Development and Technical Support

Linux - Package Installation

This is a discussion on Linux - Package Installation within the Server Management forums, part of the Servers and Hosting category; hi... How to install the packages in Linux? Explain me with one example package. Regards, S.Ashokkumar....


Go Back   IT Community - Software Programming, Web Development and Technical Support > Servers and Hosting > Server Management

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 08-29-2007, 06:07 AM
write2ashokkumar write2ashokkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 85
write2ashokkumar is on a distinguished road
Default Linux - Package Installation

hi...

How to install the packages in Linux? Explain me with one example package.



Regards,
S.Ashokkumar.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-29-2007, 06:20 AM
sivaramakrishnan sivaramakrishnan is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 74
sivaramakrishnan is on a distinguished road
Thumbs up Re: Linux - Package Installation

Hi,

Using rpm commands to install,unistall & upgrade the packages.

Command

Instal Package
rpm -ivh packagename(.rpm)

i-install
v-Print verbose information
h-Hash

Uninstall Package

rpm -e packagename(.rpm)

e-erase

Upgrade Package

rpm -Uvh packagename(.rpm)

Regards,
siavaraman,
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-29-2007, 07:08 AM
write2ashokkumar write2ashokkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 85
write2ashokkumar is on a distinguished road
Default Re: Linux Package Installation

hi...

What is the use of "make" command?



Regards,
S.Ashokkumar
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-30-2007, 11:59 PM
sivaramakrishnan sivaramakrishnan is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 74
sivaramakrishnan is on a distinguished road
Thumbs up Re: Linux - Package Installation

Guys,

Make command is use for to compile open source like tar file(php-5.2.1.tar.gz)

Ex

tar xzf php-5.2.1.tar.gz --->extract the tar file
cd php-5.2.1
./configure--->configure the PHP
make---->compile the PHP source
make install--->install the package

Regards,
sivaraman,
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-31-2007, 07:02 AM
write2ashokkumar write2ashokkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 85
write2ashokkumar is on a distinguished road
Default Re: Linux - Package Installation

hi sivaram,

What is the different between "rpm -ivh" and "make install" command?
Because you said both commands are used to install the packages.


Regards,
S.Ashokkumar.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-31-2007, 07:48 AM
sivaramakrishnan sivaramakrishnan is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 74
sivaramakrishnan is on a distinguished road
Thumbs up Re: Linux - Package Installation

Ashok,

rpm -ivh ----->install the Package
make install---->compile the source code

Regards,
sivaraman
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-31-2007, 08:01 AM
write2ashokkumar write2ashokkumar is offline
D-Web Programmer
 
Join Date: Mar 2007
Posts: 85
write2ashokkumar is on a distinguished road
Default Re: Linux - Package Installation

Thanks sivaram... i have another one doubt.... can you help me?

How to partition the hard disk in linux OS like in windows OS?



Regards,
S.Ashokkumar.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-31-2007, 08:11 AM
sivaramakrishnan sivaramakrishnan is offline
D-Web Programmer
 
Join Date: Feb 2007
Posts: 74
sivaramakrishnan is on a distinguished road
Thumbs up Re: Linux - Package Installation

Ashok,

This will just go into the basics of setting up your partitions. If you want in depth info on fdisk man fdisk J Before using FDISK you need to identify which drive it is that you are going to partition. Here is a short listing that should help you out.

hda = first drive attached to ide 1
hdb = second drive attached to ide 1
hdc = first drive attached to ide 2
hdd = first drive attached to ide 2

And if you have a Promise or other PCI IDE controller those are

hde = first drive attached to ide 1 on the card
hdf = second driver attached to ide 1 on the card
hdg = first drive attached to ide 1 on the card.

The same scheme goes for SCSI hard drives. The only difference is that the drives name will start with an S

sda = first hard drive attached to the scsi interface

Now that you know which drive you are going to partition type

fdisk /dev/hda
You will now be in the fdisk interface.

Type p and press enter.

This will print out the current partition scheme. It is a GOOD idea to write this info down. It can help you out later if something screwy happens.

Now these instructions are going to assume that you want to wipe out the entire drive and prepare it for linux.

Type d and press enter.

You will now be asked for the partition number that you want to delete. You should have the number of partitions from the print function we did one step ago. Enter the partition number and press enter. Repeat until there are no longer any partitions

1. Now that the old partition table is gone we need to create a new one.

Type n and press enter.

This tells fdisk that you are going to create a new partition. It will now ask you to select Primary or Extended partition type. The first partition that we are going to create is for the /boot directory so we make it Primary. Next fdisk will ask you for a partition number 1-4. Since this is the first partition press 1 and press enter.

Now Fdisk is going to ask you for the cylinders to use. Just press enter once to accept the default first cylinder. Now it will ask you for the ending cylinder. You do not have to know how many cylinders are in a MB. Just type in the size that you want in MB. Lets say for example that I want the partition to be 25 MB. I would type +25M and that would create a 25 MB partition.

Now since this first partition is going to be for /boot we only need to make it 25 MB max. Some people will tell you to make it bigger. It all depends on your tastes. I personally keep mine at 25 MB.

2. Now we need to create a swap partition. Again this is a personal preference. I usually just use 2x ram up to 512 MB.

Next step is to type n and press enter. Select the partition type and number. Primary and partition number 2. Fdisk again is going to ask you for the cylinders to use. Just press enter once to accept the default first cylinder. At the second prompt enter the size in megabytes. +512M

3. If you are going to be creating a workstation all you really need is one more partition. Have this partition just take up the rest of the hard drive. Next step is to type n and press enter. Select the partition type and number. Primary and partition number 3. Fdisk again is going to ask you for the cylinders to use. Just press enter once to accept the default first cylinder. At the second prompt just press enter if you want to use the rest of the free space on the drive.

4.Now we need to set which partition is Active. The active partition will always be /boot. In our previous steps we set hda to be the /boot partition. So

type a and press enter

Fdisk will now ask you which partition you want to make active. Enter 1 to select partition number 1.

5.Now we need to change the partition type of the swap partition.

Press t and press enter. This will ask you which partition you want to change. Press 2. It will now ask you for the partition type. Type in 82 and press enter. This changes the partition type to swap.

6.Type p again to see the new partition table. You should see an a next to partition number one and partition number 2 should say linux swap.

7.If you are happy with the partition scheme press w. W tells fdisk to write the new partition table and exit fdisk. If you are not happy with the scheme and want to start over type q and press enter. Q tell fdisk to exit

Regards,
sivaraman.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 09-03-2007, 07:41 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 385
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: Linux - Package Installation

Hi Sivaram,

Is that any option to set Windows[OS]with the default boot for the PC while we have LINUX[OS] in it?


As i find that after installing LINUX to my PC, find that LINUX boots normally when my system starts.
__________________
-Murali..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 03-24-2009, 06:21 AM
leveup2 leveup2 is offline
D-Web Trainee
 
Join Date: Mar 2009
Posts: 8
leveup2 is on a distinguished road
Default Re: Linux - Package Installation

Thanks for all your post
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
package gkumar HTML, CSS and Javascript Coding Techniques 0 07-21-2009 08:25 PM
Team Suite and TFS Installation bluesky Server Management 3 05-18-2009 01:13 AM
FFMPEg Installation in Open suse 11.1 (Linux) sans Server Management 3 05-15-2009 03:32 AM
TFS Installation Error 29112 arjkhanna Server Management 10 11-02-2007 04:36 AM
What is installation shield in testing ? sivakumar Software Testing 1 07-27-2007 05:02 AM


All times are GMT -7. The time now is 05:32 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0