LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Can wget or git be used instead of apt-get? (https://www.linuxquestions.org/questions/slackware-14/can-wget-or-git-be-used-instead-of-apt-get-932738/)

stf92 03-04-2012 09:17 PM

Can wget or git be used instead of apt-get?
 
Kernel 2.6.21.5, Slackware 12.0

Hi:
At a certain point in a procedure I am following (http://elinux.org/BeagleBoardUbuntu#...tic_scripts.29), I am asked to do
Code:

apt-get install uboot-mkimage
I do not have apt-get. But I have wget and git. What would be an equivalent command line for wget or git?

willysr 03-04-2012 09:35 PM

are you kidding? Slackware don't use apt-get
It seems you posted on the wrong category

ceh383 03-04-2012 09:48 PM

Your link is for UBUNTU....And you have Slackware?

Richard Cranium 03-04-2012 09:55 PM

Quote:

Originally Posted by stf92 (Post 4618546)
Kernel 2.6.21.5, Slackware 12.0

Hi:
At a certain point in a procedure I am following (http://elinux.org/BeagleBoardUbuntu#...tic_scripts.29), I am asked to do
Code:

apt-get install uboot-mkimage
I do not have apt-get. But I have wget and git. What would be an equivalent command line for wget or git?

Are you trying to get a copy of the debian package so that you can alien or some such on it?

Richard Cranium 03-04-2012 09:57 PM

As for you other ninnyhammers in the thread, there might be a valid reason for someone to want to get their hands on a debian package while running Slackware.

(I wouldn't do that, but I've been running Slackware since 1996.)

dugan 03-04-2012 10:09 PM

I checked out that package on packages.ubuntu.com and it listed the packages's homepage as this:

http://www.denx.de/wiki/U-Boot/

You want to get the source package from there and build that. Try src2pkg first.

trademark91 03-04-2012 10:14 PM

not that i know of, you may be able to find the package by googling the package name and checking the repositories' website.

heres the source for that package: http://archive.ubuntu.com/ubuntu/poo...9.orig.tar.bz2

it appears to depend on this: http://archive.ubuntu.com/ubuntu/poo...9.orig.tar.bz2

and then that depends on a bunch of stuff as well. here's the repository page for uboot-mkimage as well, hope it helps. http://packages.ubuntu.com/precise/uboot-mkimage

flamelord 03-04-2012 11:15 PM

apt-get, wget, and git are three very different programs, they aren't really comparable. Although, I don't know your situation and am not judging you, your post would indicate that Slackware may not be the best distribution for you.

If you already know this, it is not intended to insult you, but if you don't it might help you, not just in this situation but in future situations:

apt-get: a program which installs Debian packages for software, it is limited to Debian based distributions, such as Ubuntu, other distribution have other ways of distributing software. I am not sure, but I think that slackware uses something based on compiling from source, which means you will have to download and compile the source as given by dugan and trademark91.

wget: this is a program that simply downloads a file from the internet. It is equivalent to going to the location with a browser and downloading something, but it can be used from the command line, you could use this to download the source tarball, but you would still need to compile and install it.

git: This is a version-control program, which allows developers to keep track of changes to the source code. If the given program uses git, then you could probably clone the source directory and use that to compile and install the program. However, there are other version-control softwares, such as bazaar, svn, mercurial, cvs, etc.

zk1234 03-05-2012 02:22 AM

Forget about using packages from one distribution inside the other! If you mange to find a really effective way to do this, you will become one of the most famous Linux developers ;-)
But yes, using git repository can be treated as an alternative, meaning that you can always try to compile from sources.

stf92 03-05-2012 06:08 AM

Well then, although they operate in entirely different ways, apt-get is to a debian distribution what installpkg is to slackware and therefore, it manages binaries. Source programs are out of its scope. (Perhaps it is not reasonable to compare apt-get with installpkg given the fact that apt-get downloads the package before doing anything else.)

What makes this thread to be about uboot-mkimage exclusively. Now, I do not see why this has to be different from, say, downloading the sources for MPlayer from its official site and compiling. That is, the usual './configure; make' optionally followed by 'make install'. Provided the source package includes a main configure file.

So, as to uboot-mkimage, I'll begin by looking for the official web site.

dugan 03-05-2012 08:54 AM

Quote:

Originally Posted by zk1234 (Post 4618684)
Forget about using packages from one distribution inside the other! If you mange to find a really effective way to do this, you will become one of the most famous Linux developers ;-)

There are SlackBuilds that build Slackware packages out of RPM or .deb packages. What they do is extract the .rpm or .deb (with ar in the case of .deb packages), and then run makepkg on the resulting directory.

The google-chrome SlackBuild in /extra would be an example.

allend 03-05-2012 10:17 AM

From my reading here and in your thread in another forum, I think that you are looking for the mkimage tool that you can get by building this.
http://www.mmnt.net/db/0/0/ftp.splac...a/u-boot-tools

stf92 03-05-2012 11:18 AM

Humm... I think your link could very well be the key piece I need for the solution of my problem. Thanks a lot.

Alien Bob 03-05-2012 05:35 PM

I uploaded a u-boot-tools package (for Slackware 13.37 and newer, 32bit and 64bit). I created this during my work on Slackware for ARM.
See http://slackware.com/~alien/slackbuilds/u-boot-tools/

Eric

stf92 03-05-2012 08:55 PM

Thanks for the post. But how unfortunate that I have slack 12.0!


All times are GMT -5. The time now is 10:10 AM.