Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 21 Feb 2019, 08:33
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Misc
How to add a Ubuntu repository to ppm?
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Author Message
s243a

Joined: 02 Sep 2014
Posts: 1337

PostPosted: Wed 22 Nov 2017, 02:52    Post subject:  

mavrothal wrote:
It works OK at my end.
I tried it on Puppy Tahr and only with the kxstudio and as the picture shows works fine.
What I did was to add
Code:
ppa.launchpad.net|http://ppa.launchpad.net/kxstudio-team/ppa/ubuntu/dists/trusty/main/binary-i386/Packages.bz2|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-kxstudio
#and
ppa.launchpad.net|http://ppa.launchpad.net/kxstudio-team/ppa/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-kxstudio
in DISTRO_COMPAT_REPOS then open PPM and update the databases from "settings"
Closed PPM.
Removed the previous PPM files from /tmp (or just reboot) as I find that they mess up the process if they are (partially) overwritten.
Opened PPM again, activated the kxstudio repo from "settings",
Closed and reopened PPM one last time for the change to take effect, and that was it.

The trick is that you must add the "Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION-<name>" or "Packages-ubuntu-trusty-<name>" or at least "Packages-<name>" because the database file is generated from /root/.packages/Packages-*. Without "Packages" does not see it as a repo.

BTW I see you add a bunch of x86_64 repos. Do you have a 64bit Ubuntu Puppy or you are going to use them with other 64bit puppies?


I tried to add the xenial repository on tahrpup and it didn't quite work out for me. The update db worked without error. It created all the related files (e.g. ~/.package/Packages-ubuntu-xenial-universe)

However when I searched for a package (e.g. synergy) the description and package name were blank. Here is how I modified DISTRO_COMPAT

Code:

PKG_DOCS_DISTRO_COMPAT="
z|http://archive.ubuntu.com/ubuntu/dists/${DISTRO_COMPAT_VERSION}/main/binary-${BIN_ARCH}/Packages.${DB_COMP}|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-main
z|http://archive.ubuntu.com/ubuntu/dists/${DISTRO_COMPAT_VERSION}/universe/binary-${BIN_ARCH}/Packages.${DB_COMP}|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-universe
z|http://archive.ubuntu.com/ubuntu/dists/${DISTRO_COMPAT_VERSION}/multiverse/binary-${BIN_ARCH}/Packages.${DB_COMP}|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-multiverse
z|http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-${BIN_ARCH}/Packages.xz|Packages-${DISTRO_BINARY_COMPAT}-xenial-main
z|http://archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-${BIN_ARCH}/Packages.xz|Packages-${DISTRO_BINARY_COMPAT}-xenial-universe
z|http://archive.ubuntu.com/ubuntu/dists/xenial/multiverse/binary-${BIN_ARCH}/Packages.xz|Packages-${DISTRO_BINARY_COMPAT}-xenial-multiverse
"

#-------------------
#REPOS_DISTRO_COMPAT - hardcode the compat-distro repos in here...
#-------------------
# 1|2|3
#   1 - domain. for testing the url.
#   2 - full URI of the repo
#   3 - name of db-file(s) associated with that repo. it may have glob wildcards.

REPOS_DISTRO_COMPAT="
z|http://archive.ubuntu.com/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-*
z|http://mirrors.kernel.org/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-*
z|ftp.osuosl.org/pub/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-*
z|http://archive.ubuntu.com/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-xenial-*
z|http://mirrors.kernel.org/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-xenial-*
z|ftp.osuosl.org/pub/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-xenial-*
"


ubuntu-xenial-main seemed to work but the other ones look blank when I look in the puppy package manager.
Back to top
View user's profile Send private message 
recobayu


Joined: 15 Sep 2010
Posts: 325
Location: indonesia

PostPosted: Mon 17 Dec 2018, 06:15    Post subject:  

I add this code to add texstudio in upupcc. And it's works!

Code:
PKG_DOCS_DISTRO_COMPAT="
z|http://archive.ubuntu.com/ubuntu/dists/${DISTRO_COMPAT_VERSION}/main/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-main
z|http://archive.ubuntu.com/ubuntu/dists/${DISTRO_COMPAT_VERSION}/universe/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-universe
z|http://archive.ubuntu.com/ubuntu/dists/${DISTRO_COMPAT_VERSION}/multiverse/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-multiverse
ppa.launchpad.net|http://ppa.launchpad.net/sunderme/texstudio/ubuntu/dists/cosmic/main/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-${DISTRO_BINARY_COMPAT}-cosmic-texstudio
"

#-------------------
#REPOS_DISTRO_COMPAT - hardcode the compat-distro repos in here...
#-------------------
# 1|2|3
#   1 - domain. for testing the url.
#   2 - full URI of the repo
#   3 - name of db-file(s) associated with that repo. it may have glob wildcards.

REPOS_DISTRO_COMPAT="
z|http://archive.ubuntu.com/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-*
z|http://mirrors.kernel.org/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-*
z|ftp.osuosl.org/pub/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-*
ppa.launchpad.net|http://ppa.launchpad.net/sunderme/texstudio/ubuntu|Packages-${DISTRO_BINARY_COMPAT}-${DISTRO_COMPAT_VERSION}-texstudio
"


Now, how to make gui for that?
I try this code:
Code:
#!/bin/sh
. /etc/./DISTRO_SPECS
. /root/.packages/./DISTRO_COMPAT_REPOS
echo $DISTRO_COMPAT_VERSION
echo $PKG_DOCS_DISTRO_COMPAT

addppa(){
additional="ppa.launchpad.net|http://ppa.launchpad.net/$entryPPA/ubuntu/dists/$DISTRO_COMPAT_VERSION/main/binary-${DBIN_ARCH}/Packages.${DDB_COMP}|Packages-${DISTRO_BINARY_COMPAT}-cosmic-$entryPPA"
echo
echo $additional
PKG_DOCS_DISTRO_COMPAT="$additional PKG_DOCS_DISTRO_COMPAT"
}
export addppa
#sed '/PKG_DOCS_DISTRO_COMPAT="/a nambahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' /root/.packages/DISTRO_COMPAT_REPOS

export guippa='
<window>
<vbox>
  <hbox>
   <text>
    <label>apt-add-repository ppa:</label>
   </text>
   <entry activates-default="true">
     <variable>entryPPA</variable>
     <action>addppa</action>
   </entry>
  </hbox>
  <button can-default="true" has-default="true">
  </button>
</vbox>
</window>'

gtkdialog -p guippa


But i have problem to insert a line after line PKG_DOCS_DISTRO_COMPAT="
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2659
Location: UK

PostPosted: Mon 28 Jan 2019, 03:42    Post subject:  

You could try adding the repo with Pkg (http://murga-linux.com/puppy/viewtopic.php?t=112927)

Simply run this command in the terminal

Code:
pkg add-repo ppa:foo/bar ubuntu bionic



That *should* make the repo available to use in Pkg.

You can then switch to that repo like so:

Code:
pkg repo <repo-name>


And start searching/adding packages from that repo like so:

Code:
pkg names <search>

pkg search <search>

pkg add <package-name>

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 944
Location: Connecticut, United States

PostPosted: Mon 28 Jan 2019, 09:19    Post subject:  

Quote:
You could try adding the repo with Pkg (http://murga-linux.com/puppy/viewtopic.php?t=112927)


works great....I have been doing it manually since UPUP 3.9.9.2
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Misc
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0415s ][ Queries: 15 (0.0090s) ][ GZIP on ]