All Linux package and platforms

Discussion in 'Rebol' started by MaxV, Sep 17, 2010.

  1. MaxV

    MaxV Member

  2. Graham

    Graham Developer Staff Member

    Hi Max

    Would you be able to put some explanatory text beside each file to show what they are used for.
  3. MaxV

    MaxV Member

    I tried to automatize the process with the following PHP script:
    Code:
    <?php
     function findexts ($filename) 
    	{ 
    	$filename = strtolower($filename) ; 
    	$exts = split("[/\\.]", $filename) ; 
    	$n = count($exts)-1; 
    	$exts = $exts[$n]; 
    	return $exts; 
    	} 
    
    
     if ($handle = opendir('.')) {
       while (false !== ($file = readdir($handle)))
          {
              if ($file != "." && $file != ".." && $file != "index.php" && $file != "rpm.jpg" && $file != "deb.jpg" && $file != "tgz.jpg")
    	  {
              	$thelist .= '<tr><td><a href="'.$file.'">'.$file.'</td>';
    		if (findexts($file) == 'deb') {$thelist .= '<td><img src=deb.jpg height=30><td>';}
    		if (findexts($file) == 'rpm' ){$thelist .= '<td><img src=rpm.jpg height=30><td>';}
    		if (findexts($file) == 'tgz') {$thelist .= '<td><img src=tgz.jpg height=30><td>';}
    		if (strstr($file,'amd64') or strstr($file,'x86_64')) {$thelist .= '<td>AMD64 package<td>';}
    		if (strstr($file,'i386') ) {$thelist .= '<td> 32 bit package<td>';}
              }
           }
      closedir($handle);
      }
    ?>
    List of files:
    <table><?=$thelist?></table>
    
    Now you can see the result.
    Have you any suggestions?
  4. Graham

    Graham Developer Staff Member

    I don't still know what they mean .. rpms are for ?, and the other ones are Debian packages?
  5. MaxV

    MaxV Member

    All Linux distributions can install from source or binary files. Many distributions decided to use a easy method to install using a simple compressed package, Red-Hat invented the RPM package, Debian the DEB package, Slackware the TGZ package. All distributions use at least one of them, simply double click on the package and you install it.

Share This Page