How to make puppy Linux able to run this line?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
johnnybgoode
Posts: 3
Joined: Thu Mar 17, 2022 8:45 pm

How to make puppy Linux able to run this line?

Post by johnnybgoode »

How to make puppy Linux able to run this line.

Code: Select all

root# sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sh: $: command not found
root# 

Thank you!

Last edited by johnnybgoode on Fri Mar 18, 2022 3:05 am, edited 1 time in total.

Using fossapup64-9.5

User avatar
rockedge
Site Admin
Posts: 6530
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2738 times
Been thanked: 2618 times
Contact:

Re: How to make puppy Linux able to run this line?

Post by rockedge »

Hello,
Puppy Linux does not use APT but you can install .deb files by opening the Puppy Package Manager, using Pkg-cli or downloading the .deb file and clicking on it in a Rox filemanager window.

IF you are adding a PPA repo you will need to use pkg -h

johnnybgoode
Posts: 3
Joined: Thu Mar 17, 2022 8:45 pm

Re: How to make puppy Linux able to run this line?

Post by johnnybgoode »

Would installing the apt package using package manager make puppy apt?

Actually, I just want to install Postgres. How does puppy install Postgres?

Thank you!

Using fossapup64-9.5

User avatar
rockedge
Site Admin
Posts: 6530
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2738 times
Been thanked: 2618 times
Contact:

Re: How to make puppy Linux able to run this line?

Post by rockedge »

Either open Menu->Setup->Puppy Package Manager and enter postgresql in the search bar.
Install

Code: Select all

postgresql-10_10.19
postgresql-client_10

or open a terminal and use

Code: Select all

pkg repo-update
pkg add postgresql-10_10.19 postgresql-client_10

I haven't tried it out but it something along these steps.

User avatar
Phoenix
Posts: 341
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: How to make puppy Linux able to run this line?

Post by Phoenix »

johnnybgoode wrote: Thu Mar 17, 2022 9:18 pm

How to make puppy Linux able to run this line.

Code: Select all

root# $ sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sh: $: command not found
root# 

Thank you!

To add on to this you cannot use the $ sign, you probably didn't copy it right. The $ in terminal usually indicates a non-root user such as foo$ is a non-root user named foo. Also we don't exactly have sudo in puppy.

IRC: firepup | Time to hack Puppy!

User avatar
Flash
Moderator
Posts: 974
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 51 times
Been thanked: 125 times

Re: How to make puppy Linux able to run this line?

Post by Flash »

And Puppy doesn't use sudo either. You can leave it out. (Oops, Phoenix, I didn't read your post all the way through before I posted.)

Chaos coordinator :?
User avatar
mikeslr
Posts: 2955
Joined: Mon Jul 13, 2020 11:08 pm
Has thanked: 178 times
Been thanked: 910 times

Re: How to make puppy Linux able to run this line?

Post by mikeslr »

And "johnny" always tell us which Puppy you are using (even if you did in a prior post). Puppy is a 'family'* of operating systems, all having a common 'core' but all different and one of the major differences is to which major distro it is binary compatible. I know that in recent Puppies which are binary compatible to Ubuntu versions (e.g. Bionicpup64 and Fossapup64) the pkg modules have been built in. I'm not sure if it has been built into all Puppys 'based' on Slackware or debian.
If it has been built in you will see a listing on the menu: Setup>pkgdialog package manager and two others. If it hasn't been built in it can be added by following the instructions from here, https://oldforum.puppylinux.com/viewtop ... 112927&i=1*. Without that module the advice given in the above posts about using it will not be effective.

mistfire has recently published an updated version of pkg-cli, named pkg2, viewtopic.php?t=5367. But you'll notice that it is under the 'Cutting Edge' Section of the Forum. Considering mistfire's experience and capabilities, I would expect it to function properly. But I wouldn't recommend its employment by those unfamiliar with Puppy until reports by 'veterans' have confirmed its reliability. If there are problems we will need detailed feed-back to over-come them. And you, a newbie, (a) can't be expected to provide that nor (b) need to get involved in its development in order to accomplish your current goal.
-=-=-=-
* There are over 6,000 published versions of Puppy, approximately 30 considered 'current' and actively maintained.

Post Reply

Return to “Beginners Help”