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!
Moderator: Forum moderators
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!
Using fossapup64-9.5
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
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
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.
johnnybgoode wrote: ↑Thu Mar 17, 2022 9:18 pmHow 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!
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.)
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.