Help: Wanting to Develop an APT front-end

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Help: Wanting to Develop an APT front-end

Post by LeonBlade »

Hey guys,

I've been searching around and to no luck can I find a way to develop a front-end for APT.
Is anyone familiar with it and how I can go about this?

Thanks.
There's no place like ~/
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Help: Wanting to Develop an APT front-end

Post by avansc »

apt? as int apt-get?

there is aptitude, but any os the that is debian based has a front end for that already.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: Help: Wanting to Develop an APT front-end

Post by LeonBlade »

I know, but I want to make my own front-end.
And yes, like apt-get.
There's no place like ~/
User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Help: Wanting to Develop an APT front-end

Post by Ginto8 »

LeonBlade wrote:I know, but I want to make my own front-end.
And yes, like apt-get.
man pages?
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Help: Wanting to Develop an APT front-end

Post by avansc »

well you just need to be able to run system commands as root. then you need to be able to parse whatever apt-get spits back at you. as ginto said, the man pages are a good place to start.

you could also cache this, http://www.apt-get.org/main/ into a db, that way you dont have to load it every time over the network. just update it if there are discrepancies, im sure you can get a md5/sha of the current state of the repo.

also, i would look at the source of the current gui package manager, that should steer you in the right direction.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
LeonBlade
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1314
Joined: Thu Jan 22, 2009 12:22 am
Current Project: Trying to make my first engine in C++ using OGL
Favorite Gaming Platforms: PS3
Programming Language of Choice: C++
Location: Blossvale, NY

Re: Help: Wanting to Develop an APT front-end

Post by LeonBlade »

That's what I figured I'd have to do, just parse output from system() calls.
Reason I ask is because I'm trying to make something on the iPhone/iPod touch (similar to what Cydia is) and I wasn't sure if I was going about it the correct way.
Seems to be I am, I'll look into it more, perhaps ask on a jailbroken development site.
There's no place like ~/
User avatar
M_D_K
Chaos Rift Demigod
Chaos Rift Demigod
Posts: 1087
Joined: Tue Oct 28, 2008 10:33 am
Favorite Gaming Platforms: PC
Programming Language of Choice: C/++
Location: UK

Re: Help: Wanting to Develop an APT front-end

Post by M_D_K »

I'm pretty sure there is a lib (which is part of apt) which you can link to, it has all the stuff needed to read the db.

found it: libept
Gyro Sheen wrote:you pour their inventory onto my life
IRC wrote: <sparda> The routine had a stack overflow, sorry.
<sparda> Apparently the stack was full of shit.
Post Reply