VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: How do I write to my files  (Read 1112 times)

TC

  • Member
  • *
  • Posts: 41
How do I write to my files
« on: December 27, 2007, 02:14:47 pm »

I have tried on several occasions to write to specific files for example; I downloaded a package gtkpod-0.99.12.tar.gz and tried to add it to usr/local/packages using KGet but was unable because it would not allow me to do so.  How can I download packages and put them where they need to go so I can use GSlapt to unpackage and load them onto my computer?  TC.
Logged

toothandnail

  • Tester
  • Vectorian
  • ****
  • Posts: 2527
Re: How do I write to my files
« Reply #1 on: December 27, 2007, 03:00:10 pm »

I have tried on several occasions to write to specific files for example; I downloaded a package gtkpod-0.99.12.tar.gz and tried to add it to usr/local/packages using KGet but was unable because it would not allow me to do so.  How can I download packages and put them where they need to go so I can use GSlapt to unpackage and load them onto my computer?  TC.

 ;D There are really a couple of questions there...

First, other than your home directory, you will find that you do not have permission to write files in many other places unless you give yourself root (superuser) access. For downloading, the easiest is to make a directory under your home directory and download files to that directory. They can then be moved later using root access, if necessary. Downloading using root access is not a good idea.

Second, I think you are making an assumption. The example you give looks more like a source file than an application, so there is little chance that Gslapt will be able to do anything with it at all.

For packages, use Gslapt (make sure you have all the repositories that you need enabled) and let it download and install applications. If you can't find an application that you want in the Vector repositories, at least some Slackware packages will work. For packages that do not seem to have a Vector or Slackware version, you will either need to compile and install  them yourself, or request someone to build a package for you - there is a section on the forum for that purpose.

Hope that helps a bit...

paul.
Logged

The Headacher

  • Louder than you
  • Global Moderator
  • Vectorian
  • *****
  • Posts: 1553
  • I like the bass to go BOOM!
    • Multimedia on VL (work in progress)
Re: How do I write to my files
« Reply #2 on: December 28, 2007, 03:16:41 am »

What you have there is sourcecode. it does not contain anything the computer can work with yet, it's just code as it was written by programmers (probably in C or C++). it will first have to be converted to code that the computer can work with (compiled). Some programs can be compiled with lot's of functions enabled/disabled, depending on what other software is available on the system. A package usually contains compiled code, and information on what packages it needs to work.

The files in /var/log/packages are used by pkgtools (slapt-get and gslapt use pkgtools) to determine what is installed, and what files are in it. so just extracting files to there is not going to work. Instead, the software will have to be compiled. You can do this manually, here's a howto on building packages from source: http://www.vectorlinux.com/forum2/index.php?topic=1701.0 . It's a rather long HOWTO, but you don't have to do everything in there unless you want to build packages that comply to VL standards. It's probably easier to use vpackager. it can make packages in a more easy way:  http://www.vectorlinux.com/forum2/index.php?topic=4259.0
Logged
Most music on my soundcloud page was arranged in programs running on VL.