Puppy Packages Updater Utility
Take a look at /usr/bin/updates_mgr in the latest slacko. You may want to extend that to handle the puppy repos too.
The package version is the the 3rd field in package specs and *-installed-packages so will give you the package version and then you can use vercmp to compare them.
The package version is the the 3rd field in package specs and *-installed-packages so
Code: Select all
{echo,cat,while} $LINE | cut -f 3 -d '|'
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==
I wrote some more code.
How can I continue?
https://github.com/linuscl/updatepuppy/ ... tepuppy.sh
Please write your tips here!
Thank you for all!
How can I continue?
https://github.com/linuscl/updatepuppy/ ... tepuppy.sh
Please write your tips here!
Thank you for all!
When I use Update in Puppy Package manager, It has to convert the lists to Puppy format for display. And in selecting repositories, old versions of Puppy are included in the update process. So... Can the Update script be rewritten to allow for exclusion of some of the repositories?
Having updates done for the 3 and 4 versions of Puppy seems to be overkill.
Having updates done for the 3 and 4 versions of Puppy seems to be overkill.
Thank you, 8-bit!
I've updated my script.
There's still a question:
How can I create a loop for this code block?
I'd like to check all applications in my /tmp/packages-install file.
All lines must be checked.
I've updated my script.
There's still a question:
How can I create a loop for this code block?
I'd like to check all applications in my /tmp/packages-install file.
Code: Select all
FIRST=$(head -n 1 /tmp/packages-install | cut -d\| -f 1)
version=$(head -n 1 /tmp/packages-install | cut -d\| -f 2)
ausgabegrep=$(grep -n -w $FIRST /tmp/packages-puppy-*)
file=$(echo $ausgabegrep | cut -d ':' -f 1)
if [ $file == "/tmp/packages-puppy-4" ]; then
filedirectory="/root/.packages/Packages-puppy-5-official"
elif [ $file == "/tmp/packages-puppy-5" ]; then
filedirectory="/root/.packages/Packages-puppy-slacko-official"
elif [ $file == "/tmp/packages-puppy-6" ]; then
filedirectory="/root/.packages/Packages-puppy-slacko14-official"
elif [ $file == "/tmp/packages-puppy-7" ]; then
filedirectory="/root/.packages/Packages-puppy-common-official"
elif [ $file == "/tmp/packages-puppy-8" ]; then
filedirectory="/root/.packages/Packages-puppy-noarch-official"
else
fehler=$(echo $ausgabegrep | cut -d ':' -f 3)
echo "File wasn't found"
fi
Time for some readinglinus.cl wrote:How can I create a loop for this code block?
You also may want to look at some PPM scripts too.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==
what versions?linus.cl wrote: How can I compare the versions?
you can see your commits in https://github.com/linuscl/updatepuppy/commits/master or locally with
Code: Select all
git show <commit hash>
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==
Something goes wrong in my script...
Some packages will be installed twice..
Look at the source!
I hope you can find the error
Some packages will be installed twice..
Look at the source!
I hope you can find the error
- Attachments
-
- updatepuppy.tar.gz
- (1.66 KiB) Downloaded 125 times